forked from cqframework/mct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (25 loc) · 892 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
language: python
python:
- "3.8"
services:
- docker
install:
- cd $TRAVIS_BUILD_DIR
- ./bin/install_ci_dependencies.sh
jobs:
include:
- stage: test
script:
- cd ./frontend
- docker build --target builder -t mct-frontendtest:$TRAVIS_COMMIT .
- docker run --entrypoint yarn mct-frontendtest:$TRAVIS_COMMIT test-ci
install: skip
- stage: deploy
if: branch = main
script:
- docker build -t mct-frontend:$TRAVIS_COMMIT ./frontend
- sed -i 's/localhost:8080/mct-cqf-ruler-a/g' ./java/src/main/resources/configuration/facilities/facilities-bundle.json
- sed -i 's/localhost:8082/mct-cqf-ruler-b/g' ./java/src/main/resources/configuration/facilities/facilities-bundle.json
- DOCKER_BUILDKIT=1 docker build -t mct-backend:$TRAVIS_COMMIT ./java
- cd $TRAVIS_BUILD_DIR
- ./bin/deploy.sh