2017-07-06 01:25:46 -06:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- 6.11.0
|
2016-11-21 08:02:01 -07:00
|
|
|
before_script:
|
2017-07-06 08:09:56 -06:00
|
|
|
- sudo apt-get install curl -y
|
|
|
|
- mv node_modules/.bin/which node_modules/.bin/which.backup
|
|
|
|
- rvm install 2.4.1 && rvm use 2.4.1
|
|
|
|
- mv node_modules/.bin/which.backup node_modules/.bin/which
|
2016-11-21 08:02:01 -07:00
|
|
|
- cp config/database.travis.yml config/database.yml
|
2017-01-18 08:20:03 -07:00
|
|
|
- mkdir -p public/app
|
|
|
|
- touch public/app/index.html
|
2016-12-05 19:26:34 -07:00
|
|
|
- ./install_frontend.sh
|
2016-12-04 15:22:22 -07:00
|
|
|
- bundle exec rake db:create db:migrate
|
2017-07-06 01:34:28 -06:00
|
|
|
- yarn install
|
2016-11-21 07:57:55 -07:00
|
|
|
script:
|
2016-11-21 07:54:17 -07:00
|
|
|
# A 'fake' secret token for use in our CI env.
|
|
|
|
# Don't worry- this isn't the real one.
|
2016-12-04 15:29:40 -07:00
|
|
|
- export SECRET_TOKEN=e815982094c62436066bafc9151f2d33c4a351a776654cb7487476de260a4592
|
2017-01-12 17:25:29 -07:00
|
|
|
- export GCS_BUCKET=farmbot-team
|
|
|
|
- export GCS_ID=XnqcumDRnrsFdJpX5glhFpZQKSJIjZ+/lPnWkPe/
|
|
|
|
- export GCS_KEY=GOOGSDXDNLBL7DHPNZTT
|
2016-12-04 15:29:40 -07:00
|
|
|
- export MQTT_HOST=example.com
|
|
|
|
- export OS_UPDATE_SERVER=http://example.com
|
|
|
|
- export FW_UPDATE_SERVER=http://example.com
|
|
|
|
- export DB=postgresql
|
|
|
|
- bundle exec rspec
|
2017-07-06 01:05:25 -06:00
|
|
|
- npm run test
|