forked from loomio/loomio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (44 loc) · 1.12 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
language: ruby
cache: bundler
sudo: false
cache:
directories:
- vendor/bundle
- lineman/node_modules
- lineman/vendor/bower_components
env:
- DB=postgresql
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- bundle install --without development --deployment --jobs=3 --retry=3
- cd lineman
- npm install -g bower
- npm install -g protractor
- npm install
- bower install
- webdriver-manager update
- cd ..
branches:
only:
- 'master'
- 'production'
- /^[0-9]+\.[0-9]+$/
rvm:
- 2.2.0
before_script:
- nohup bash -c "webdriver-manager start 2>&1 &"
- cp config/database.yml.$DB config/database.yml
- bundle exec rake db:setup RAILS_ENV=test
script:
- bundle exec rake travis
- RAILS_ENV=test bundle exec rails server &
- cd lineman && lineman spec-ci
- lineman run & sleep 10
- lineman grunt spec-e2e
addons:
postgresql: "9.4"
code_climate:
repo_token:
secure: "RQcqTqhx9hhcWO97ib8s8I8m/ufPbBuKRfEEh4RHNIsBEMpqekaPNHtK+T2ym2pfbCpD+L+0bZ+nMlSCrYz0gklfNnYJlPH4/g1f0SX2OEdq2eUCi9xlRObi9ayXsz7Ujtk14mncNGx+e02TnAtEjtFBT8uyvxn8Ql4djvOTsCg="