.travis.yml
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