forked from zxing-js/library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (26 loc) · 804 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
env:
global:
- CXX=g++-4.8
- CC_TEST_REPORTER_ID=e6be83551acde45d90f95ab35d4dbd4136645ec8a9b621f40ba2bed83010b718
- CODACY_PROJECT_TOKEN=482590c2b0f647649d07ba6ad9d40fb9
language: node_js
node_js:
- '12'
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -qq update
- sudo apt-get -qq install g++-4.8
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:
- yarn build
- yarn cover
cache:
yarn: true
directories:
- node_modules
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage