forked from tudelft3d/val3dity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (26 loc) · 818 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
os: linux
language: cpp
services:
- docker
install: skip
script:
- echo "skipping tests"
- echo ${DOCKER_PASSWORD} | docker login -u ${DOCKER_USERNAME} --password-stdin
- docker pull tudelft3d/val3dity:latest || true
- docker build . --cache-from tudelft3d/val3dity:latest -t tudelft3d/val3dity:latest
deploy:
- provider: script
script: docker push tudelft3d/val3dity:latest
cleanup: false
on:
branch: master
- provider: script
script: docker tag tudelft3d/val3dity:latest tudelft3d/val3dity:dev ; docker push tudelft3d/val3dity:dev
cleanup: false
on:
branch: develop
- provider: script
script: docker tag tudelft3d/val3dity:latest tudelft3d/val3dity:${TRAVIS_TAG} ; docker push tudelft3d/val3dity:${TRAVIS_TAG}
cleanup: false
on:
tags: true