-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy path.travis.yml
35 lines (35 loc) · 1005 Bytes
/
.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
language: node_js
env:
- DOCKER_COMPOSE_VERSION=1.29.0
node_js:
- 14
cache:
- npm
- docker
before script:
- sleep 30
script:
- curl http://localhost:9200
- curl http://localhost:4566
- npm run lint
- npm run test
- npm run test-aws
services:
- docker
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker-compose up -d
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
- unzip awscliv2.zip
- sudo ./aws/install
- export AWS_DEFAULT_REGION=us-east-2
- export AWS_ACCESS_KEY_ID=a
- export AWS_SECRET_ACCESS_KEY=a
- export LOCALSTACK_HOST=localhost:4566
- docker ps
- sleep 20
- aws --endpoint-url http://localhost:4566 es create-elasticsearch-domain --domain-name domain-test > out.txt
- cat out.txt