-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
59 lines (53 loc) · 2.78 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
language: bash
services: docker
env:
global:
- ORGANIZATION=bscstorage
- secure: X0cB8gsrUjR4VTzTUU8chCphohYtJ04YKb9Jb34Q0J+a07UTum2weafSVK+36xKDOVNxGUJJSf2Iv5DXxV0xe7DV907smX6nvdLRnCOVPoQKiXKUSa2VisDhq3urlZoYuS/pTcMy6YGpSj9KteQ7fgX6AXN2ziNkJX1ML4oSKPVDJX/xe8KwzDYSPYcIzm3TNjsxMiDVfrm6ykwDmZ696XhuUg/RaqYWtA/jWV/qEr2BYxsjiIrijzKZWiMCRU7xs2oGDxA7OtYCAbz4OcSpDSU8PFr0GwlBvJRl0Ya2G594NgZhD24JC2JhpliasZ7pqpYG+OfKRpfK/hj0rITyPT7xJ69sxeshS5w+eGl4+jrItyfO3F2U+XsYzJdZGyyxToa7lXv9Fe4c6f7BTtJxLLRUZmFh3rSEhdTmq3XPHMkcELy/FJNiBLyiJi18/P3Igyg9ota5kklDqnNm5JaVrRJXzB+cv1IkhwNfMJ50HK6ZNiR/nvU8n408YqCbPtnOyoA4XVttjomQOYQe+Mg+yS/il67qbQ/EjpbJcCDAlyMG8WlfmAjBhb0m7C+b4slT7ef4ty7kh0ghyDFfCFFDLR5ZDdh/Rm/6oe4KlASzU4KBAiT1LH7vdk97uImJd2Uxr9BDJLeCnn86l+1nuxKT0g00G+9LMOd+7/osag29NPM=
- secure: hdY9MwGsAhh3pcfcW1GN8iCopTMHVjvKKzd5zLw4cI7VXUzHEOggXeqYXha20pTpIASY9Ka9in1Wn4TnkEcePuPeqSVt0r8fpXcqagVL2vUzDEiZvrZFwZp7ZPjEqAOFvz0z6AUooZ433lGq6z0sx8qUQIfvqG/dsS9KbgBTBxnNXf/GvGgP09omlmJbrq6VCz6DFR5lsKIjggSaGOdjqUuB0Nt3UsVdxBgw1wxDwXZXX83d3j5PT8wdpOOmimzDLGQIrbbVTxT/lEaKU2OF6P3hJjMzbr9wXHxI0EUvxk4aQLqhkHxkyU0n0bd+xu/btaFmPqUomcuxwZ1scJQDYPTnohmq2Ne2hmhP+DUWASJ616d/fTBieYpBgoP7yZQVoALndmqhKzBTfQsdag+Y+B9Q+bTgS4O127K8svDA1Gw51nPYT2CZCMHkeUorAIZSI5zH6ftErlAxCmNWga6sMKxkt+EvzHE8pwiDx/CiOpYn8NJoGqEeCmuuqS01YNH0Tk6m4E6Voupm2rMRXOU09I9b3gmkn5cRtdX2u67KSQKHSGLHapA+FS5CjZKUsCpGFbEkmfOnoV2t5dWQ8iUskYV2zBF8swNyr87F9PyOnfD+pNz+bsDYvCPX9hapkqsImOuRv+lzgp5a5HLVanLVy75AoD4S5GYZcncfBrzJMZA=
matrix:
- COMPILER=gcc VERSION=4.8
- COMPILER=gcc VERSION=4.9
- COMPILER=gcc VERSION=5.4
- COMPILER=gcc VERSION=6.5
- COMPILER=gcc VERSION=7.4
- COMPILER=gcc VERSION=8.1
- COMPILER=gcc VERSION=9.1
- COMPILER=gcc VERSION=latest
- COMPILER=clang VERSION=3.6
- COMPILER=clang VERSION=3.8
- COMPILER=clang VERSION=3.9
- COMPILER=clang VERSION=4.0
- COMPILER=clang VERSION=5.0
- COMPILER=clang VERSION=6.0
- COMPILER=clang VERSION=7.1
- COMPILER=clang VERSION=8.0
- COMPILER=clang VERSION=9.0
- COMPILER=clang VERSION=latest
before_script:
- env | sort
- cd "${COMPILER}/${VERSION}"
- IMAGE="${COMPILER}-toolchain:${VERSION}"
- CACHED_IMAGE="cached_image:latest"
- ( docker pull "${ORGANIZATION}/${IMAGE}" &&
docker tag "${ORGANIZATION}/${IMAGE}" "${CACHED_IMAGE}" &&
docker rmi "${ORGANIZATION}/${IMAGE}" ) || true
- docker images
script:
- |
(
set -Eeuo pipefail
set -x
docker build --pull --cache-from "${CACHED_IMAGE}" --tag "${ORGANIZATION}/${IMAGE}" .
docker run -ti --rm "${ORGANIZATION}/${IMAGE}" "${COMPILER}" --version
)
after_script:
- docker images
before_deploy:
- docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS"
deploy:
provider: script
script:
- docker push "${ORGANIZATION}/${IMAGE}"
on:
branch: master