forked from ari/jobsworth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (23 loc) · 1.1 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
language: ruby
bundler_args: --without debug
rvm:
- 1.9.3
- jruby-19mode
env:
matrix:
- "JRUBY_OPTS=\"-J-Xmx3072m -J-XX:MaxPermSize=512m\" DB=mysql BUNDLE_WITHOUT=postgres:sqlite"
- "JRUBY_OPTS=\"-J-Xmx3072m -J-XX:MaxPermSize=512m\" DB=postgres BUNDLE_WITHOUT=mysql:sqlite"
global:
secure: "Cqu98Fne4YYtnVyn1WwuAt3yj9XdzayF/r6tEOwa7y7gzgS8/33XGUfcsCyU\nB9ywir3JCbMa+19wWrgBt4Mv+BcVsryRtbcIuZz303HBHis+yrG+AtM5rjM7\ng6IW7+BIMIvTWIlJ31q4MmjAeq4riNr7ZxTd9kHeQL3YTiLyKWk="
before_script:
- sh -c "cp config/database.$DB.yml config/database.yml"
- sh -c "cp config/application.travis.yml config/application.yml"
- sh -c "if [ \"$DB\" = 'postgres' ]; then psql -c 'create database jobsworth_test;' -U postgres; fi"
- sh -c "if [ \"$DB\" = 'mysql' ]; then mysql -e 'create database jobsworth_test;'; fi"
script:
- "bundle exec rake ci:build"
notifications:
hipchat: <%= ENV['HIPCHAT_TOKEN'] %>@Procurementtool
# 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.