This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (50 loc) · 4.1 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
57
58
language: node_js
cache: yarn
node_js:
- 8
- 10
before_install:
- npm i -g yarn
script:
- yarn lint
- yarn build
- yarn test
# Environment variables marked with `secure` should be securely encrypted as described at:
# https://docs.travis-ci.com/user/environment-variables/#encrypting-environment-variables
notifications:
slack:
rooms:
- secure: XHV3esqW1jjmCKskz8sOH+G/L0cAFv1c2JKqjDWVCqim2uXxI6hKZjuz7tpaq44orSS/7+LSgJMXjv92JoFHSz0zPj3SKcHS0w2h1rfdfpTqS6QUkJ5PwrfEDzOKyNdL7KzoRwhpnnBLQBOa9Oli55VQM0ja8eaX1sU3iMWHV0OWVdeXQKKYkLn36WAGucQRyuLIAKziCds1McWJFPUsrmfqoW8f2mNRbvpUdcJpgxMctWUATebUAY2U9vor/bJTxuirn6qsf7q3PfTJQJ3819TfHAvrdEBRtmP7VHEi1aTJtiIDHAakMd2aBINsty8KXt9scdGwACuEi7odK+6s4oigwjVgkhek8e3UWga29c4k1rjZxE0y+OiNQBISufWkzjM92rUkz7qeSa+v8m8AjcfNhtpa3MRSbeXiQO9gMpojMAHjGxelSPlFrklTpDPRfrlj49LSKE1vZSqz9NLAKI61D7s8GQS7Ul2+PVSD3eTFk4vzd+wqtYti398p2s+hQ8ul8wb4a2SxqiGBG8+CdGyacf5fT1h5h2steJkpU5TFYGtcPgELshVLELECQChZFANF93qO5KL9yNBShBIuUsWc9KskOqaFwoNAVkaqIghuN+Dwpaj7Gfc6PxElW1TURZzxoOAolCczZusLbiD+XOlNdXF3ICkocCA9R33/rbM=
on_success: change
on_failure: always
env:
global:
- secure: n+FBKBJn+wB6WZPw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Wa3Xy5hYQ/PLl6csEaAe9duRfVSyt+hrJVrFNmfA0LADKZV+61a26ce6GHSDcQMwCtYY8QW2M3Q6j0PYI30yvqD61Wa5LMI9WqwdUZIYCfjRKpC3JvUqF0g4HjjNFxW6D7pfFxkXwWa4t2nv/CgLJleMtaV0SvMByNvy/zCTb6tGM99Thbyp9nmMhgcXL1158JDOdsUcEK6OYCKmcefQGuefgJgeX3JOzxEsDUI9/g/oMamjZ+vd0tvaPdQqvGtT07xgQtABrPUQJp44=
- secure: lwTRm9scTABTjFg34i9eK4Xptujr3/xgW06FipDKk+3MKAY/aV/IQSrSV8VPjFeWYYNG5w8N6650Y7d0KVpgupPfIwtHI0voMpjV6uZVxty67VZBhcKvupc7WgZptpZLmr0P2L2hfCeWPNhhugs9pJWUEdQE8kSjjC/k6NJ3Or6SqKZjgDSftE0+LZAYoNRV7Gvi1z3Wzssa2BVI3XVgbyqxVQ3ng0MDysGTme0vGurNVZoNpSjADNFVOdAksbHm9crc40SZKj3G33XTgRPnvFILoTzm2mwh2vqsrboY902rLp+rDHPy66Wpa4R8U0pr4uizz0dJGU6qMPowcgEalzaRUMGMiULBQWjTUj4ZkIIz+J0CCPj6Wncp+ogSUt27WE56mE9Bffh0am5+TU7dGNbEbp7jfQNkS7PBTFXFcDwVRh2pVWdFNfxjzD6mgSRiuqxOxTVe0c9M9LMCuOblTwRDrG8ak6DG9B/oxBgdjEzxr4eh+meaad8hvkDkM7Oa+PaYX2iDEGq8QafAyPuRXQQeoC9NZHmMWteoDZjGwDHEcsq5hAAphbDgGZzEUXgNIRgzQwqlEW3AQtrehfXOhwrASXgpPFVZhbGtarj54DcOMXv5u+XLZ1DrqqIjK++69ej4MN380o1kaKvsZKfaZCDnHutTcC3/k4mU6AXmuPU=
- export GIT_AUTHOR_NAME="esg-bot"
- export GIT_AUTHOR_EMAIL="[email protected]"
- export GIT_COMMITTER_NAME="esg-bot"
- export GIT_COMMITTER_EMAIL="[email protected]"
jobs:
include:
- stage: coverage
if: type != pull_request
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
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_success:
- yarn global add codecov
- codecov
- stage: release
if: branch = master AND type != pull_request
after_success:
- yarn semantic-release
- git clone https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_REPO_SLUG
- cd $TRAVIS_REPO_SLUG
- git fetch --all
- git merge origin/master
- git push