-
Notifications
You must be signed in to change notification settings - Fork 213
/
.travis.yml
56 lines (56 loc) · 1.83 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
52
53
54
55
56
env:
global:
- CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID
language: ruby
rvm:
- 2.6.5
sudo: false
cache:
directories:
- travis_phantomjs
services:
- xvfb
- postgresql
before_install:
- export DISPLAY=:99.0
- sudo apt-get install -qq libldap2-dev libidn11-dev
- 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:
- "./install.sh"
- 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:
- USE_JASMINE_RAKE=true bundle exec rake jasmine:ci
- bundle exec rspec
- bundle exec rake report_intermittent_fails:reassemble_spec_examples
- bundle exec rake report_intermittent_fails:rerun_failing_tests
- bundle exec rake cucumber:first_try
- bundle exec rake cucumber:second_try
after_script:
- "./cc-test-reporter after-build"
deploy:
provider: script
skip_cleanup: true
script: bash scripts/deploy.sh develop
on:
branch: develop
provider: script
skip_cleanup: true
script: bash scripts/deploy.sh staging
on:
branch: staging
notifications:
email: false
slack:
secure: TZyMRkIOE99+rMEfOP3a9hCLmgF0K+Qr9vO0b3tgJLeb+SdKL3L++NyO0Q7rJUFJLHkYhn/BcV2wGNT2mrU1q9GPqOO0yyFwjl+v2vpImkPlnVf6Ud9+NnQIgFWK98LmSY0uCCZ8axvHw4ReFi/nK1p2GNabyhY8Dio4uJnryEQ=