-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
51 lines (51 loc) · 2.27 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
46
47
48
49
50
51
env:
global:
- CC_TEST_REPORTER_ID=0b4943cc3a212e0c4ef7c61e0f5f5800966f0025675e40fadda460cde24e7855
language: ruby
language: node_js
notifications:
email: false
sudo: false
cache:
- yarn
- bundler
services:
- redis-server
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
install: bundle install --jobs=3 --retry=3
before_script:
- bundle exec rake yarn: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
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- bundle exec rspec
- bundle exec cucumber
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
deploy:
provider: heroku
api_key:
secure: CRr1dTBcycaENs91dx/a4jqJkMo5p32ZA7M7sp5WsKvF+KJM4kkzYR2MnfOubJxni3NL4swu5zaZueZGezSfzndJpDD9N+ug4AcWAPpv7T4BkZn8Zr67e7rYgby1bQ1C16Vl45kdLNfR9SCjhoxuDKYlAmgWaxLrlTFjOcRZTRhoB5CQ8nmkCJxgCFaZWxv5c8qrwPkgzvxerNas1nnsQUP15R0FHFjtHiaDYBt7m7L3+FC00lnZJfZ/En5bFKGe7uku/WyDfs9ORRPN+RIQL/riWeHW6mP05o4bOWmK9Gk+cexfknvYQ/hxrZIQUOmqmoc95KMYBLwnD4fod9z29zqFCTN4Ad2aqHwpIAZKyx8AQFIxavGaKAR8wPZMBKQSDtA5RTaie8qGRexzZyCu1k/glf6s6OtM72Jt2EJGPvsZKy37QufOgvDbVVyqvVV9XICLILtobpuSZrPGKxVTAmYHMkK04zMjeIaN2Sy3zgMhENPgh86bJ+2i6DvTLpnA9W6r8NfMWofpC34TusATc6CsQVc0tjKepelpcS9VrYqRF+pmen2/9EUw69Iso+z6sTe2722pTqmla3ip41DlLIvsA6qABMDlMbYOMenEDo0HuD7Xi4yZl/JDYt/OPpueQvdWJ4yi3HraA/x2eXkiNhN8ootwVApIXN7jEqCTm18=
app:
develop: iccg-green-dev
master: iccg-team-green
on:
repo: Xiaohong-Deng/mooqita-icccg