-
Notifications
You must be signed in to change notification settings - Fork 198
/
.travis.yml
43 lines (36 loc) · 1.21 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: ruby
cache: bundler
sudo: false
bundler_args: --without debug
matrix:
include:
- rvm: 2.3.1
env: DB=postgres
- rvm: 2.3.1
env: DB=mariadb
addons:
mariadb: 10.1
- rvm: jruby-9.1.5.0
env: DB=postgres
jdk: oraclejdk8
- rvm: jruby-9.1.5.0
env: DB=mariadb
jdk: oraclejdk8
addons:
mariadb: 10.1
env:
global:
- JAVA_OPTS="-Xmx2G"
- 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\" = 'mariadb' ]; 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.