forked from loomio/loomio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (56 loc) · 1.57 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
60
61
62
63
64
language: ruby
rvm:
- 2.3.1
cache: bundler
dist: trusty
sudo: false
cache:
directories:
- vendor/bundle
- angular/node_modules
env:
- DB=postgresql CXX=g++-4.8
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- nvm install 7.4.0
- nvm use 7.4.0
- npm install -g yarn
install:
- bundle install --without development --deployment --jobs=3 --retry=3
- cd angular; yarn; cd ..
branches:
only:
- 'master'
- 'user-testing'
- 'production'
- /^[0-9]+\.[0-9]+$/
before_script:
- angular/node_modules/webdriver-manager/bin/webdriver-manager clean
- angular/node_modules/webdriver-manager/bin/webdriver-manager update
# - angular/node_modules/webdriver-manager/bin/webdriver-manager start --quiet &
- cp config/database.yml.$DB config/database.yml
- bundle exec rake db:setup RAILS_ENV=test
- bundle exec rake plugins:fetch plugins:install
- bundle exec rake travis:prepare
- RAILS_ENV=test bundle exec rails server > /dev/null &
script:
# - bundle exec rake travis:rspec
# - bundle exec rake travis:cucumber
- bundle exec rake travis:protractor
after_script:
- bundle exec ruby lib/tasks/travis_upload_screenshots.rb
addons:
firefox: latest
postgresql: "9.5"
apt:
sources:
- heroku
- ubuntu-toolchain-r-test
packages:
- expect
- heroku-toolbelt
- g++-4.8
code_climate:
repo_token:
secure: "RQcqTqhx9hhcWO97ib8s8I8m/ufPbBuKRfEEh4RHNIsBEMpqekaPNHtK+T2ym2pfbCpD+L+0bZ+nMlSCrYz0gklfNnYJlPH4/g1f0SX2OEdq2eUCi9xlRObi9ayXsz7Ujtk14mncNGx+e02TnAtEjtFBT8uyvxn8Ql4djvOTsCg="