forked from fatfreecrm/fat_free_crm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (22 loc) · 783 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
rvm:
- 1.9.2
- 1.8.7
# Only build master branch
branches:
only:
- master
env:
- DB=mysql
- DB=postgres
- DB=sqlite
gemfile: Gemfile.ci
bundler_args: --path=vendor/bundle --without heroku
before_install: gem install bundler --pre
before_script:
- 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"
# Run RSpec tests and ensure that assets can compile without errors
script: "bundle exec rake && bundle exec rake assets:precompile"
# To stop Travis from running tests for a new commit,
# add the following to your commit message: [ci skip]
# You should add this when you edit documentation or comments, etc.