-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
31 lines (30 loc) · 1.05 KB
/
.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
language: python
python:
- "3.10"
- "3.11"
services:
- redis-server
install:
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install -r requirements_dev.txt
env:
global:
- CC_TEST_REPORTER_ID=70b61d7fc0179e87033f671e32f3402b8201bc97400dda66f45e286c060182e6
- PORT=5037
- API_VERSION=v1
- LOCAL_URL=http://127.0.0.1:5037
- GATEWAY_URL=http://127.0.0.1:9000
- MICROSERVICE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Im1pY3Jvc2VydmljZSIsImNyZWF0ZWRBdCI6IjIwMTYtMDktMTQifQ.IRCIRm1nfIQTfda_Wb6Pg-341zhV8soAgzw7dd5HxxQ
- REDIS_URL=redis://localhost:6379
- REQUIRE_API_KEY=True
- AWS_REGION=us-east-1
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:
- echo -e "$EE_PRIVATE_KEY" | base64 -d > privatekey.json
- pytest --cov=gfwanalysis --cov-report=xml
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT