-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Travis CI and github integration
- Free for public repositories - Need to set secret key base (copy travis specific file) - Also copying a database.yml file so that local credentials can be different - Needed to Update uglifier * Travis build bundle audit alerted me to this issue: * mishoo/UglifyJS#751 - Could leave off the rvm ruby version and let it use the `.ruby-version` file, but this is a beta feature (warning printed)
- Loading branch information
1 parent
0ebea54
commit 2531412
Showing
5 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
before_install: | ||
- "echo '--colour' > ~/.rspec" | ||
- "echo 'gem: --no-document' > ~/.gemrc" | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
install: | ||
- bin/setup | ||
language: ruby | ||
cache: bundler | ||
rvm: | ||
- 2.2.2 | ||
branches: | ||
only: | ||
- master | ||
cache: | ||
- bundler | ||
language: | ||
- ruby | ||
notifications: | ||
email: false | ||
rvm: | ||
- 2.2.2 | ||
addons: | ||
postgresql: "9.3" | ||
sudo: false | ||
services: | ||
- postgresql | ||
before_script: | ||
- export DISPLAY=:99 | ||
- sh -e /etc/init.d/xvfb start | ||
- sleep 3 | ||
- cp config/secrets.yml.travis config/secrets.yml | ||
- cp config/database.yml.travis config/database.yml | ||
- psql -c 'create database travis_ci_test;' -U postgres | ||
- bin/rake db:create db:schema:load |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
test: | ||
adapter: postgresql | ||
database: travis_ci_test | ||
username: postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
test: | ||
secret_key_base: 3a6a5b5dffbb0c58391a6d88651656ddfdac09a97b5e88f1eca4af24b5ce41580d9612f53e5226b797c426f5c9ad82bbf3bf4bd7933e33c3f0 |