.travis.yml
language: node_js
node_js:
- "20.4"
cache:
directories:
- "node_modules"
env:
global:
- CC_TEST_REPORTER_ID=27363c2a463b66987ca0d81b2cb0f4779635780c3d54e983491e9aa844e5344d
- GATEWAY_URL=http://127.0.0.1:9000
- FASTLY_ENABLED=false
- NODE_ENV=test
- MICROSERVICE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Im1pY3Jvc2VydmljZSIsImNyZWF0ZWRBdCI6IjIwMTYtMDktMTQifQ.IRCIRm1nfIQTfda_Wb6Pg-341zhV8soAgzw7dd5HxxQ
- NODE_PATH=app/src
- PORT=3025
- GFW_API_KEY=fake-key
- 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