forked from fiedl/wingolfsplattform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (85 loc) · 7.53 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
rvm:
- "2.5.1"
env:
- "WORKER_ID=0 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=1 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=2 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=3 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=4 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=5 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=6 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=7 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=8 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=9 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=10 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=11 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=12 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=13 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=14 NUMBER_OF_WORKERS=15 CI_CATEGORY=features RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql SELENIUM=true"
- "WORKER_ID=0 NUMBER_OF_WORKERS=10 CI_CATEGORY=models NO_RENEW_CACHE=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=1 NUMBER_OF_WORKERS=10 CI_CATEGORY=models NO_RENEW_CACHE=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=2 NUMBER_OF_WORKERS=10 CI_CATEGORY=models NO_RENEW_CACHE=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=3 NUMBER_OF_WORKERS=10 CI_CATEGORY=models NO_RENEW_CACHE=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=4 NUMBER_OF_WORKERS=10 CI_CATEGORY=models NO_RENEW_CACHE=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=5 NUMBER_OF_WORKERS=10 CI_CATEGORY=models NO_RENEW_CACHE=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=6 NUMBER_OF_WORKERS=10 CI_CATEGORY=models NO_RENEW_CACHE=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=7 NUMBER_OF_WORKERS=10 CI_CATEGORY=models NO_RENEW_CACHE=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=8 NUMBER_OF_WORKERS=10 CI_CATEGORY=models NO_RENEW_CACHE=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=9 NUMBER_OF_WORKERS=10 CI_CATEGORY=models NO_RENEW_CACHE=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=0 NUMBER_OF_WORKERS=3 CI_CATEGORY=models NO_CACHING=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=1 NUMBER_OF_WORKERS=3 CI_CATEGORY=models NO_CACHING=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=2 NUMBER_OF_WORKERS=3 CI_CATEGORY=models NO_CACHING=true RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
- "WORKER_ID=0 NUMBER_OF_WORKERS=1 CI_CATEGORY=others RAILS_ENV=test CI=travis COVERALLS_SILENT=true NEO4J_REST_URL_TEST=http://neo4j:neo4j@localhost:7474 DB=mysql"
cache:
bundler: true
directories:
- node_modules
yarn: true
dist: trusty
sudo: true
addons:
firefox: latest
chrome: stable
apt:
packages:
- pwgen
- libicu-dev
code_climate:
repo_token: e0efa94b3c7a8a2049f5ff1ded51a21e922bf29845e658de598b01c964c17275
services:
- redis-server
- neo4j
before_install:
- travis_retry gem update --system
- travis_retry gem install bundler
- wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver*.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
install:
- travis_retry bundle install
- bundle install
- nvm install node
- node -v
- npm i -g yarn
- yarn
before_script:
- sleep 10
- cp config/database.travis.yml config/database.yml
- cp config/secrets.example.yml config/secrets.yml
- mkdir -p public/uploads
- mkdir -p tmp/cache
- bundle exec rake db:create db:migrate
- bundle exec rake your_platform:install:node_modules || echo 'task not found'
- "export DISPLAY=:99.0" # https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- bundle exec ruby script/tests
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/53f5cd27c87a47426f47
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false