resource-watch/prep-nexgddp

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
dist: bionic
language: python
python:
  - "3.10"
  - "3.11"
services:
  - redis-server
install:
    - pip install -r requirements.txt
    - pip install -r requirements_dev.txt
env:
  global:
    - CC_TEST_REPORTER_ID=b0e123a69a101092783cf6a00ba055f156cff58c5bf3582e95316e8436a4d5cf
    - PORT=5037
    - LOCAL_URL=http://127.0.0.1:5037
    - GATEWAY_URL=http://127.0.0.1:9000
    - MICROSERVICE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Im1pY3Jvc2VydmljZSIsImNyZWF0ZWRBdCI6IjIwMTYtMDktMTQifQ.IRCIRm1nfIQTfda_Wb6Pg-341zhV8soAgzw7dd5HxxQ
    - CPLUS_INCLUDE_PATH=/usr/include/gdal
    - C_INCLUDE_PATH=/usr/include/gdal
    - GOOGLE_APPLICATION_CREDENTIALS=./storage.json
    - RASDAMAN_URL=http://rasdaman:9876/
    - REDIS_URL=redis://localhost:6379
    - AWS_REGION=us-east-1
    - REQUIRE_API_KEY=True

before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - echo -e "$GCLOUD_STORAGE" | base64 -d > ./storage.json
  - ./cc-test-reporter before-build
script:
  - pytest --cov=nexgddp --cov-report=xml
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT