forked from mmb/meme_captain_web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (59 loc) · 1.35 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
language: ruby
cache: bundler
rvm:
- 2.3.3
- 2.4.0
matrix:
exclude:
- rvm: 2.3.3
env: TASK=coffeelint
- rvm: 2.3.3
env: TASK=rails_best_practices
- rvm: 2.3.3
env: TASK=rubocop
- rvm: 2.3.3
env: TASK=spec DB=mysql
- rvm: 2.3.3
env: TASK="spec spec:postgres" DB=postgresql
- rvm: 2.3.3
env: TASK=spec:javascript
- rvm: 2.3.3
env: TASK=container:spec
env:
global:
- DISPLAY=:99.0
matrix:
- TASK=coffeelint
- TASK=rails_best_practices
- TASK=rubocop
- TASK=spec
- TASK=spec DB=mysql
- TASK="spec spec:postgres" DB=postgresql
- TASK=spec:javascript
- TASK=container:spec
before_install:
- sh -e /etc/init.d/xvfb start
- if [ "$DB" == 'mysql' ]; then echo "gem 'mysql2', '~> 0.4.5'" >> Gemfile; fi
install:
- gem update --system
- bundle install --jobs=4
before_script:
- if [ -n "$DB" ]; then cp config/database.yml.$DB config/database.yml; fi
- bundle exec rake db:create db:migrate
sudo: required
addons:
postgresql: "9.4"
apt:
packages:
- libgmp-dev
services:
- docker
- mysql
script: bundle exec rake $TASK
notifications:
slack:
secure: xe6V8beAfRDNcyJFEY1Gn0diRTiXCmNmvdKkAM0Ft5T7RSqDAtFtumPvRs03Esn66FfqGqdjqa7BsTURBrf40t+shkF3Ab5AfHkNys/rCYnboGwdyUUAOIhWBl64Yjv7DzHW6AWWrTBqSDmeTGC3vX/FUwAHwcmyagBVurSoT5w=
branches:
except:
- deploy