Skip to content

Commit 0723fb2

Browse files
committed
Added travis keys
1 parent f28bb0b commit 0723fb2

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.travis.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,30 @@
11
os: linux
2-
32
language: cpp
4-
53
sudo: required
6-
74
branches:
85
only:
96
- "/^test.*$/"
107
- "/^v[0-9].*$/"
11-
128
services:
139
- docker
14-
1510
addons:
1611
apt:
1712
update: true
18-
1913
env:
2014
global:
2115
- DOCKERHUB='chalmersfsd'
2216
- IMAGE=`echo ${TRAVIS_REPO_SLUG#*/}`
23-
17+
- secure: kBYsV+YVlZm6c03HGJMXNAruJ4eMn2ord/1Vefzvg51hHyMei/OBTIxjG8Cg6maWsRasVVmAreEjwo65aut5z5wykndek/2LbOR3wyXX3Mj7SFGIetMnX2onEjhYwrVX4QMtUEASdMAmPWJQO5rLWq+0/qvEQzcGnlSEZzpJHNnpoBcU/qw1DZ0eaosmUdEen0USJsF9EvCKtS0sOf0+rgD+f2G2Cq6uWen3FOKFMf7LvrJxwG8+na3bx/9WfWHJdgRuZjzzmhVKxsNzfb/SmJ3VxmBGeKTo6XkNM0Ze8zEwJVf0mrRAVADqgA9goMV/TP1e9akhvTHXmNH6ucltgWYiPpbwUwCa3xRzVyr3n+DM7OzosTp9QNP0obhSZwCzssWAikbfKe1TfMyDni/pSQL4thvM54c2mlprHOFnDnNMncqhD2y9yMygVLsH3YqruUUdRDs4EBW5zQdIaJc99LjCVtEuzNi9mAhAQNMs+DFZQwLmOhztE+mQweRwSqKx/jrFGwl9NEpz+fJW2KMe+aaEV/ea9CKv8fHU73DF9EX0Rs+GJEThGcCR/ajCAUiluY3bxpDIP85MVUcT5Ue/O1zW9ldJvOViusGQt0SPKr3ZDE4hsqlOE1wZswo9SJWiLiBC2f/8ymYIyCuLESQw4cxA1WUD9/J2+eQfUOWqGT4=
18+
- secure: EG+E17qqVfmRWHy55aHxzDHsaHHwsbvlcBcG0vic7v/aMf5mc3BPf5wR86CDV6tZSqz1lRBI7JDdnaCPtnKG7zlOI45FGKACbU4HN4NtlpCOKzhkSP5Az+kUn4O5qxzrUky8M4yQJfwjcnLLrvmp3Hn1WzKkhLCUYsapCmcN7ExzXgCTzWz+8h8BoiEhoDNb7rFRbMg1od6m/Ag6vLkid6NmClwVOxD1LInMS5DDj8vykd48JTGUGAl3EeY8fs5iq7eM8IM4/Yqulm0IVn3cDywai7MDj5Rgf9VjOw8loJtBWyNnu/8ZtubzbHBJu7Ixlm/AYp/PK+lfOuzATEtwcdzwdTKTKapkao0xsDt1Z7vhe5woZ7bPtvtONKgp8g8yqFxuWrTu8hpGam7++u42aIF/JrPzhv5N1YtbVx242m3prpnOmIYSZQTL+CSIuDhESIsMSKuXNeOkCdl2ISenh8q8/VdGrQWLwqCGr37HnvWuSs++jbb6F0XGPFXZU3HQmAsPlmIPhGcLvBTtTy9kaRd3ltqaACn0ZK/NEou8BWEOXCYBxVx/TvlBKszQInwkwQsBn1LQzBX+sRDpBlYotZQ870YIk8AlZSCsLVn9HyVtoSgrqHSDGVT/aol+4XuaehEN5NwtcYs7aMkvmaHELsV3oKXyV4zV3laNXV5Gki4=
2419
install:
2520
- docker build -f Dockerfile.amd64 -t ${IMAGE} .
26-
2721
script: skip
28-
2922
after_success:
3023
- echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
31-
- 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
32-
24+
- if [[ "${TRAVIS_BRANCH}" == *test* ]]; then docker tag ${IMAGE} ${DOCKERHUB}/${IMAGE}:${TRAVIS_BRANCH}${TRAVIS_BUILD_NUMBER};
25+
docker push ${DOCKERHUB}/${IMAGE}:${TRAVIS_BRANCH}${TRAVIS_BUILD_NUMBER}; echo "${DOCKERHUB}/${IMAGE}:${TRAVIS_BRANCH}${TRAVIS_BUILD_NUMBER}";
26+
else docker tag ${IMAGE} ${DOCKERHUB}/${IMAGE}:${TRAVIS_BRANCH}; docker push ${DOCKERHUB}/${IMAGE}:${TRAVIS_BRANCH};
27+
echo "${DOCKERHUB}/${IMAGE}:${TRAVIS_BRANCH}"; fi
3328
notifications:
3429
email:
3530
on_success: never

0 commit comments

Comments
 (0)