-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 2.23 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
os: linux
language: cpp
sudo: required
branches:
only:
- "/^test.*$/"
- "/^v.*$/"
services:
- docker
addons:
apt:
update: true
env:
global:
- DOCKERHUB='chalmersfsd'
- IMAGE=`echo ${TRAVIS_REPO_SLUG#*/}`
- secure: pIqUbrJluiF8181fG9WxSSTUQ4PPlpQ351SVkYksaOZlQmVmVK7RSzjkp8VzierXGzXYAPWXpMGDiw63UEyYbl0Rk0ElXL+bqiHcbDUIN4kAVZ1DT4ZK4Q/tqXTPjM/8Aa55KRhC9fLDZT0xangkmv8yweiDz0mlIPdgkaELCtubhFjs+iEwNMgBch4YCP6qAKT+wApD8kroUww9Hav/sWsFWBrrm/UHD3eS5FDWyyDAiA/eWOaOelH8XJwksaRgh15HfoloUMIdrukTm58M8oy4ps9kc3qAoviIcoe7Wb2ITE4O+wsb0WY672SuCD9cCy8EVzuwBwqgqUCeffzvREhaa1jmLniqPzrDHtSDaK6TEZ9Wb6ikPuQ8ayyMvnCsJEaCfn5gcAOXmYrjhWI+nrVWhNfOY/LzDDH/5q4XVCNkcdNINaVo3/AL+LbKplsNz1w8P2fhxki6Zej2Qq/XW7ZSEpK6Ktho1cnHqKBdABIR2W4k/6QvCZToId6ECFJH/vh+47sbptbDKLcXENnNAtH/PUc3tme/6k7xwJ/ZVSKmoZfbx3PLKVm1B9KNlyCdcwJdmhaoRpqTNcKKOMWhMrn26OyNo3nRrQtstRquBS70lpKgAQVlZUTBSPNW18wVRxv/vQJKqRmI7CqYZT0IEWXL+GmCbkLMOQ4J/jgG7xs=
- secure: hAZ6kuUm5ZMaMcTbgmCmjkcvBjKLngjPZZq6dMFvozgHUdkd0Bs6m0bkUlUyHyrB93NoEkf+PoHPs3XotVv280wUI9frsvvgf+aITAhliWBHTwPlcdbTZlAMRW3oMo93vLUOD8YiXYJJOlDZhZ896VR6w1Lxek5SNHEB+5Ey1PFM7hn7WF47k+//MSfiqEXCGvmIu6HNzjnczHadzXmiwvCjB+LSePBnYNOlqSzFvEsP9q9fQnOlMOd3dbu5gGnOrhhhJcvIZNq09xED8qcE31TNnTvdsO8uQ4tDMsO5XrJxdHzli8hRRrjbonxnAWVfGM0SOVLyDEwgmnXRMmQDYCl9ZzhB2gM4hs8ivZ8sCnd1sQM1e86MA3d642fQriyC6g/Ovvg5hMY1YnmRfttKUMQ3H+xc25rJ9Vp1fgigeKz3Ma+RlKK1hOXQEz/6xwEePfjuvPUxJS7tE8wcBnJjxjFXjhZZqiD1dGkT5CaXSK+I/+4+hLcogLy3fyddc5l4PDLmtMl46xKR8dzVxBN3X+4ke7YwvE88+Y1fpEf2j6maZBFW8w+/fTmugTF/kXK1tehnW9ssVUMf/LKTUq0QbzIjwj/91uglFlw2bpW02wMqrqdZZbIE7DFK90fxZSP1SM+EQ3Ns5yCvhLi4GvuLasDYGe1UfwW2ea5KgSneap0=
install:
- docker build -f Dockerfile.amd64 -t ${IMAGE} .
script: skip
after_success:
- echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
- if [[ "${TRAVIS_BRANCH}" == *test* ]]; then docker tag ${IMAGE} ${DOCKERHUB}/${IMAGE}:${TRAVIS_BRANCH}${TRAVIS_BUILD_NUMBER};
docker push ${DOCKERHUB}/${IMAGE}:${TRAVIS_BRANCH}${TRAVIS_BUILD_NUMBER}; echo "${DOCKERHUB}/${IMAGE}:${TRAVIS_BRANCH}${TRAVIS_BUILD_NUMBER}";
else docker tag ${IMAGE} ${DOCKERHUB}/${IMAGE}:${TRAVIS_BRANCH}; docker push ${DOCKERHUB}/${IMAGE}:${TRAVIS_BRANCH};
echo "${DOCKERHUB}/${IMAGE}:${TRAVIS_BRANCH}"; fi
notifications:
email:
on_success: never
on_failure: never