forked from Skydipper/Metadata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (31 loc) · 1001 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
dist: bionic
language: node_js
services:
- mongodb
node_js:
- "20.4"
cache:
directories:
- "node_modules"
env:
global:
- CC_TEST_REPORTER_ID=dee1235bba59531f55ff076cd4d76f51397caa245061d7dd870c0456fea7117e
- NODE_ENV=test
- PORT=5005
- GATEWAY_URL=http://127.0.0.1:9000
- MICROSERVICE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Im1pY3Jvc2VydmljZSIsImNyZWF0ZWRBdCI6IjIwMTYtMDktMTQifQ.IRCIRm1nfIQTfda_Wb6Pg-341zhV8soAgzw7dd5HxxQ
- MONGO_PORT_27017_TCP_ADDR=127.0.0.1
- MONGO_PORT_27017_TCP_DATABASE=metadata_db_test
- FASTLY_ENABLED=false
- AWS_REGION=us-east-1
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
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 test
- yarn run coverage
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT