forked from AgileVentures/LocalSupport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 1.65 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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=