forked from ODNZSL/nzsl-online
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.54 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
language: ruby
bundler_args: "--without development"
sudo: false
cache:
bundler: true
yarn: true
services:
- postgresql
addons:
postgresql: "9.6"
apt_packages:
- pandoc
- google-chrome-stable
- postgresql-9.6
- postgresql-client-9.6
env:
global:
PERCY_TARGET_BRANCH=staging
before_script:
- gem install --no-document brakeman pandoc-ruby
- nvm install node 9.10.0
- yarn install
- 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
- RAILS_ENV=test bundle exec rails db:create db:migrate db:schema:load
script:
- brakeman --run-all-checks --exit-on-warn --format plain .
- npx percy exec -- bundle exec rspec spec
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
PERCY_TOKEN:
secure: OdRsPf9G94Dv7qjmPZoIUFqoFyMqHXdaeY6CNGc+DSQQXKtx+BCfK3TH2solS0ncgqegG6CcshVAg77w/D9IUqSUkJXKG3nE/jkJQJxA5yoMPYbQoSJJU2UAqNh+XRr2iDqUC0TGq8cHMASxgYmo2qIwknJRRTTTxxafo22HB7UaQRrk0g4RSx8K+UAJxMMz57KSBrrBfZS+E6SIS6f/ndXB8hcM6DjuYmrKjRbEvxRQe8TWMIhcE+1772KWbfIxnA/E0nEFiodo/Dqc/7FPkrS+aV3gCVofIGQxKFWas4hrXJeI3MJfiGI31n6K+PMD/YuizNVwk8uxbRvWiHlxa12A3Fd0Xcm1EBM5s/lYLRSdeXnfEfAlramNqFImeuaMOjPUvOo5XeNQjCYgmPB10Ox78nwgsZiRfOIQn6y1/LgW2MWksUBTEM3lrMTmYouMrEgOt3WrMfXMYz3GreTipjPXugsAuzOJVvQq2KfyCdd94gIVQbeobR+HzuCCBPIlTzJ0Mmg6SY+zEE6Ry1RZVyBXOwfEeZadWPEsTuwSLmke2YvgWy4InURAvr1ysS55El/OaRzzfR8wNN1r5d9fsD2jktOTGIjVT3dyywzTQhEi6Vk51gwOtGn2h5BjdPkaVg9ZjUCw6+yV4xydfiCmzwVjoXzzNdEc3mcZg9/1FbU=