forked from openfarmcc/OpenFarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (27 loc) · 953 Bytes
/
.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
---
language: ruby
services:
- mongodb
- elasticsearch
sudo: false
dist: bionic
cache:
bundler: true
addons:
firefox: '66.0'
code_climate:
repo_token:
secure: "aBGrdMAhqGgV+KQAGLXAvGOIOmDoaWpeH1pPwRoZX4HxKanA5eQ7mDDObK1oFgy4vctVNUcCx8vM6kKZzT2W0kOXjNGcJO5u0IE9DE87gQZbR43Hy5JpFnMmOf6A/m9CtJLD0Zny9ihucmda6ODBoHIkOGj7P1bRJYH4En1dozI="
before_install:
- wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.24.0-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
before_script:
- ./cc-test-reporter before-build
script:
- bundle exec rspec
after_script:
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t simplecov --id $CC_TEST_REPORTER_ID"