-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
56 lines (50 loc) · 1.44 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
54
55
56
language: node_js
node_js: 12
services: docker
env:
- DOCKER_COMPOSE_VERSION=1.23.2
before_install:
- docker -v && docker-compose -v
- 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
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
- chmod +x ./kubectl
- sudo mv ./kubectl /usr/local/bin/kubectl
install:
- cd microservice-customers-api/
- npm install --no-optional
- npm run build
- cd ../
- cd microservice-frontend/
- npm install --no-optional
- npm run build
- cd ../
- cd microservice-orders-api/
- npm install --no-optional
- npm run build
- cd ../
- cd microservice-restaurant-front/
- npm install --no-optional
- npm run build
- cd ../
- cd microservice-restaurants-api/
- npm install --no-optional
- npm run build
- cd ../
- cd microservice-users-api/
- npm install --no-optional
- npm run build
- cd ../
- docker-compose -f ./deployment/docker/docker-compose-build.yaml build --parallel
- cd microservice-users-api/
before_deploy:
- cd ../
- pwd
- echo "Now we are good to go."
deploy:
provider: script
script: bash push_and_deploy
on:
branch: master