-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
40 lines (39 loc) · 1000 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
31
32
33
34
35
36
37
38
39
40
language: ruby
git:
depth: false
submodules: false
addons:
chrome: stable
before_install:
- # start your web application and listen on `localhost`
- google-chrome-stable --headless --disable-gpu --no-sandbox --remote-debugging-port=9222 http://localhost &
branches:
only:
- devel
- wip
- uat
- master
cache:
bundler: true
yarn: true
directories:
- node_modules
env:
global:
- CC_TEST_REPORTER_ID=71b495d9f5d19cba66a3d80a3934f7306e12ede5c137809034040c991a8045c6
services:
- postgresql
install:
- yarn install
- bundle install --jobs=3 --retry=3
before_script:
- psql -c 'create database reception_app_test;' -U postgres
- 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
- yarn test
after_script:
# Run code climate
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT