gfw-api/gfw-area

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js
dist: bionic
services:
  - docker
  - mongodb
node_js:
  - "20.4"
cache:
  directories:
  - "node_modules"
env:
  global:
    - CC_TEST_REPORTER_ID=249b9754ecbd021d08b0961a1b49aed7fbda2f82397f946a005a0b31cff4b6b7
    - NODE_ENV=test
    - PORT=4100
    - HOST_IP=127.0.0.1
    - LOCAL_URL=http://127.0.0.1:4100
    - GATEWAY_URL=http://127.0.0.1:9000
    - MICROSERVICE_URL=http://127.0.0.1:9000
    - MICROSERVICE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Im1pY3Jvc2VydmljZSIsImNyZWF0ZWRBdCI6IjIwMTYtMDktMTQifQ.IRCIRm1nfIQTfda_Wb6Pg-341zhV8soAgzw7dd5HxxQ
    - S3_ACCESS_KEY_ID=1
    - S3_SECRET_ACCESS_KEY=1
    - S3_BUCKET=s3bucket
    - 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