Farmbot-Web-App/.travis.yml

30 lines
811 B
YAML
Raw Normal View History

2017-07-06 01:25:46 -06:00
language: node_js
node_js:
2018-01-16 08:54:52 -07:00
- 8.9.4
cache:
bundler: true
yarn: true
directories:
- /home/travis/.rvm/
before_install:
- rvm install 2.5.1
- rvm use 2.5.1
2016-11-21 08:02:01 -07:00
before_script:
2017-07-06 08:23:48 -06:00
- sudo apt-get install curl -y
- mv node_modules/.bin/which node_modules/.bin/which.backup
- cp config/database.travis.yml config/database.yml
2018-05-03 14:48:45 -06:00
- bundle install --jobs=3 --retry=3
- bundle exec rake db:create db:migrate
2017-07-06 08:23:48 -06:00
- yarn install
2016-11-21 07:57:55 -07:00
script:
2017-07-06 08:23:48 -06:00
- export SECRET_TOKEN=e815982094c62436066bafc9151f2d33c4a351a776654cb7487476de260a4592
- export MQTT_HOST=example.com
- export OS_UPDATE_SERVER=http://example.com
- export FW_UPDATE_SERVER=http://example.com
- export DB=postgresql
2017-07-20 10:16:18 -06:00
- export COVERALLS_REPO_TOKEN=lEX6nkql7y2YFCcIXVq5ORvdvMtYzfZdG
2017-08-10 14:14:21 -06:00
- bundle exec rspec --fail-fast=3
- npm run typecheck
- npm run test-slow
- npm run coverage