-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
72 lines (71 loc) · 4.26 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
rvm:
- "2.7.1"
env:
- "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"
cache:
bundler: true
directories:
- node_modules
yarn: true
dist: trusty
os: linux
language: ruby
addons:
firefox: latest
chrome: stable
apt:
packages:
- pwgen
- libicu-dev
services:
- redis
- elasticsearch
- neo4j
before_install:
- travis_retry gem update --system
- travis_retry gem install bundler
- wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver*.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
- "export DISPLAY=:99"
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16" # https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-xvfb-directly
install:
- travis_retry bundle install
- bundle install
- nvm install v10.16.0
- node -v
- npm i -g yarn
- yarn
before_script:
- sleep 10
- cd demo_app/my_platform
- 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'
- bin/rails assets:precompile
- cd ../..
script:
- bundle exec ruby script/tests
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/14aec2cb97b9e0f2a808
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: never