forked from Skydipper/doc-executor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 1.07 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
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