forked from seven1m/onebody
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 1.02 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
env:
- DB=pg
- DB=mysql
language: ruby
rvm:
- 2.2
before_install:
- 'echo -e ''test:\n adapter: mysql2\n database: onebody_test\n username: travis\n encoding:
utf8'' > config/database.yml.mysql'
- 'echo -e ''test:\n adapter: postgresql\n database: onebody_test\n username: postgres\n encoding:
unicode'' > config/database.yml.pg'
- 'sed -i "s/#gem ''pg''/gem ''pg''/" Gemfile'
- 'cp config/database.yml.$DB config/database.yml'
bundler_args: "--without development production"
cache: bundler
sudo: false
services:
- mysql
- postgresql
script:
- RAILS_ENV=test bundle exec rake --trace db:migrate
- bundle exec rspec
before_script:
- 'echo -e ''test:\n secret_token: abc123\n secret_key_base: 123abc'' > config/secrets.yml'
- mysql -e 'create database onebody_test'
- psql -c 'create database onebody_test;' -U postgres
notifications:
slack:
secure: k8ryQIZOiUVSo2pA0noNA/nwJbDvCejrxwls9bjJMF8WOObwd0BnhMh//iEnOdzdF5Z6MyF0tHgVuOtBa71QwVbMoufAK4X7I7ykLu0pVCWwhm13Gg1Ij7xi2cPT7+B/IyoKhRcEKEYwMlzV9CuispMMDoS3pHC2bMRxGSRYwTI=