resource-watch/doc-executor

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js
dist: focal
services:
  - docker
node_js:
  - "20.4"
cache:
  directories:
  - "node_modules"
addons:
  apt:
    packages:
    - rabbitmq-server
env:
  global:
    - CC_TEST_REPORTER_ID=def5a21b19d579295064355ef49518178fe4ee47f4e31ee18775df8f9ae7c96c
    - NODE_ENV=test
    - STAMPERY_TOKEN=token
    - RABBITMQ_URL=amqp://127.0.0.1:5672
    - HOST_IP=127.0.0.1
    - LOCAL_URL=http://127.0.0.1:4003
    - PORT=4003
    - MESSAGE_RETRIES=3
    - RETRY_DELAY=200
    - NODE_TLS_REJECT_UNAUTHORIZED=0
    - ELASTIC_URL=https://127.0.0.1:9200
    - ELASTIC_TEST_URL=127.0.0.1:9200
    - ELASTIC_USER=admin
    - ELASTIC_PASSWORD=admin
before_script:
  - docker run -d -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" amazon/opendistro-for-elasticsearch:1.10.1
  - 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