-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
36 lines (36 loc) · 1.61 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
language: ruby
rvm:
- 2.3.3
# before_script:
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# - sleep 3
before_script:
- 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 rake
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
# before_install:
# - wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
# - tar -xjf phantomjs-2.0.0-ubuntu-12.04.tar.bz2
# - sudo rm -rf /usr/local/phantomjs/bin/phantomjs
# - sudo mv phantomjs /usr/local/phantomjs/bin/phantomjs
before_install:
- gem install bundler --version '1.17.2'
- "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
- "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://bitbucket.org/ariya/phantomjs/downloads/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"
env:
global:
- STRIPE_PUBLISHABLE_KEY=pk_test_ufmXOx2149BsFX2Hf6i8zTTL
- CC_TEST_REPORTER_ID=70f628f222463ae4c15e93290d92a1260d057d124c394b502779eda72db4948a
addons:
code_climate:
repo_token: 70f628f222463ae4c15e93290d92a1260d057d124c394b502779eda72db4948a
dist: trusty
sudo: false