forked from hexlet-codebattle/codebattle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
19 lines (17 loc) · 731 Bytes
/
.travis.yml
File metadata and controls
19 lines (17 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
env:
- DOCKER_COMPOSE_VERSION=1.21.0
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
jobs:
include:
- stage: lint and test
script: docker-compose -f services/app/docker-compose.test.yml run sut
- stage: build docker image with tag
if: branch = master AND tag =~ ^v
script:
- docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
- docker build -t codebattle/app --file services/app/Dockerfile.prod services/app/
- docker push codebattle/app:"$TRAVICE_TAG"