forked from fatfreecrm/fat_free_crm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (28 loc) · 924 Bytes
/
.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
30
31
32
33
34
35
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.5
env:
- DB=mysql
- DB=postgres
- DB=sqlite
gemfile: Gemfile.ci
bundler_args: --path=vendor/bundle --without heroku
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
before_script:
- sh -c "cp config/database.$DB.yml config/database.yml"
- sh -c "if [ \"$DB\" = 'postgres' ]; then psql -c 'create database fat_free_crm_test;' -U postgres; fi"
- sh -c "if [ \"$DB\" = 'mysql' ]; then mysql -e 'create database fat_free_crm_test;'; fi"
- sh -c "RAILS_ENV=test bundle exec rake db:schema:load"
# Run specs
script: "RAILS_ENV=test bundle exec rake"
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/859260451e154d78c1be
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false