Farmbot-Web-App/.travis.yml

21 lines
699 B
YAML
Raw Normal View History

2014-03-12 07:42:11 -06:00
language: ruby
rvm:
- 2.3.2
2016-11-21 07:30:28 -07:00
before_script:
2016-11-21 07:43:27 -07:00
- cp config/database.travis.yml config/database.yml
2016-11-21 07:30:28 -07:00
- mysql -e 'create database farmbot_test'
- psql -c 'create database farmbot_test' -U postgres
script:
2016-11-21 07:54:17 -07:00
- cp config/database.travis.yml config/database.yml
2016-11-21 07:30:28 -07:00
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec rake db:test:prepare
- bundle exec rake
2016-11-21 07:23:09 -07:00
script: "bundle exec rspec spec/"
2014-03-12 07:42:11 -06:00
env:
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.
2015-03-09 04:18:02 -06:00
- SECRET_TOKEN=e815982094c62436066bafc9151f2d33c4a351a776654cb7487476de260a4592
2016-11-16 11:51:34 -07:00
- MQTT_HOST=blooper.io
- OS_UPDATE_SERVER=http://blah.com
- FW_UPDATE_SERVER=http://test.com
2016-11-21 07:30:28 -07:00
- DB=postgresql