.travis.yml
language: ruby
rvm:
- 2.3.1
sudo: false
cache:
directories:
- travis_phantomjs
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- phantomjs --version
- export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
- phantomjs --version
- if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir
-p $PWD/travis_phantomjs; fi
- if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2
-O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi
- if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
-C $PWD/travis_phantomjs; fi
- phantomjs --version
before_script:
- npm install -g bower
- bower install
- bundle exec rake db:create:all
- bundle exec rake db:migrate
- bundle exec rake db:migrate VERSION=0
- bundle exec rake db:migrate
- bundle exec rake db:test:prepare
script:
- bundle exec rake test_with_coveralls
- bundle exec rake cucumber:second_try
- USE_JASMINE_RAKE=true bundle exec rake jasmine:ci
deploy:
provider: heroku
api_key:
secure: cxLILpvv16VXxYQYGxPcVJqUhciks9tNDr0xLvLsTw54gT5jSqJ4DWojYtnVjRozlb6AbKnS5LqUt2JDTisNym6CUxJ3h3xHuaY3sJerTHznG1R9FprGy04ypGxTi7ESAD+3a/0QfjatfLF85gDN/jp40M8N8FvwxTUI1iZBJRk=
app:
develop: harrowcn-develop
staging: harrowcn-staging
master: harrowcn-production
run: rake db:migrate
notifications:
email: false
slack:
secure: TZyMRkIOE99+rMEfOP3a9hCLmgF0K+Qr9vO0b3tgJLeb+SdKL3L++NyO0Q7rJUFJLHkYhn/BcV2wGNT2mrU1q9GPqOO0yyFwjl+v2vpImkPlnVf6Ud9+NnQIgFWK98LmSY0uCCZ8axvHw4ReFi/nK1p2GNabyhY8Dio4uJnryEQ=