-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
53 lines (53 loc) · 1.54 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
dist: focal
language: node_js
addons:
apt:
sources:
- sourceline: 'deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse'
packages:
- mongodb-org
services:
- redis
node_js:
- "20.4"
cache:
directories:
- "node_modules"
env:
global:
- CC_TEST_REPORTER_ID=733a59862b25edf5f27ab1fbc867c8ad0cd671c326cbda331f19f2d163c753a4
- NODE_ENV=test
- PORT=9000
- LOGGER_TYPE=console
- LOGGER_LEVEL=warn
- HOST_IP=127.0.0.1
- DEBUG=redis-cache-plugin
- NODE_PATH=app/src
- JWT_SECRET=mysecret
- COOKIE_DOMAIN=mymachine
- SESSION_KEY=test
- PUBLIC_URL=http://127.0.0.1:9000
- ALLOW_CONFIG_MUTATIONS=true
- REDIS_URL=redis://localhost:6379
- LOCAL_URL=http://127.0.0.1:3001
- GATEWAY_URL=http://gateway:9000
- MICROSERVICE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Im1pY3Jvc2VydmljZSIsImNyZWF0ZWRBdCI6IjIwMTYtMDktMTQifQ.IRCIRm1nfIQTfda_Wb6Pg-341zhV8soAgzw7dd5HxxQ
- FASTLY_ENABLED=false
- AWS_REGION=us-east-1
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- OKTA_API_KEY=example
- MONGO_HOST=127.0.0.1
before_install:
- sudo systemctl restart mongod.service
- sleep 10
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 lint
- yarn test
- yarn run coverage
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT