forked from emissary-ingress/emissary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (57 loc) · 4 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
60
61
62
63
64
65
66
67
68
---
sudo: false
language: python
python:
- "3.6"
cache:
directories:
- $HOME/.cache/pip
- $HOME/.npm
# Do not run in Travis CI when the branch name starts with "nobuild". Primarily
# intended for documentation updates but may be used as an escape hatch for
# other purposes.
branches:
except:
- /^nobuild.*$/
services:
- docker
env:
global:
- PATH=~/bin:$PATH
- DOCKER_REGISTRY=quay.io/datawire
# Set the branch in a predictable way. Travis behavior is that when you are
# executing due to a PR then the value of $TRAVIS_BRANCH is actually the
# name of the base branch (e.g. "master" rather than "dev/new-feature").
#
# See also: https://graysonkoonce.com/getting-the-current-branch-name-during-a-pull-request-in-travis-ci/
- GIT_BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then printf "$TRAVIS_BRANCH"; else printf "$TRAVIS_PULL_REQUEST_BRANCH"; fi)
- secure: "pICW+jNQnKfTIi3cupJAzLe4If6FqvJ6OgAQIxfmnTxo/7w6EwzBh8zNqTJ60WCGXc/dqYpOtAYGZ/65hRR9HS9l3/8/wmZGeARoz/IR3dEbMpSQKRWTiF+J6UX24H2ol9u6vGa+JLgQuqJeTDdzGqk6h5sZ6H2a2dedOJ9Ns/QQlN/eCsxvYLHQmdzXtc+vlTAFfL902Y2AW7Ue0lqGdJlnzM9WxxX5amBxf9t73aY+pW4mqeysGPZfSlRdpkVAJd3TzYlC4fdJWYR5DGsHDXnXlQdQ7OcLC9Vpb4f5AAu4XPbdxpxW2oA4hxlV6ya1N+oDlZZo1RZiRugn7ecY7W3a6wI7HI91GbWLJe2BaCRW1TminmGZ+tSErz1AmGiOpiqjKeM7KvMwt2Kv5YpWkZ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OxCZdTDEVS10C4GDEMGj64URlUCS722tQYMIpniiB6LW2kEOOcEuzC6JsVxS7BowUEVk7Ly8BTzrgNuGFN2bSphRyrJyrS3Reo5a1YI3joUMzI29t7fegefTIHHONKhZpIE86wFRk11nwvJdt54Eu9dVFwiEiGW9L9SnG2ph4UiqN6z3iQFCQ8HNvnf+BvNasdMBR3f85DPnG/syqOcQrrE1e5T88UXRxyUwR2ty1ad+ZvQPggwsoFs1FmdJH04pGn0Tgpo/AHNe5c67tvDbw2W4jlFJgVI/keoFvQigSM2DUuL1i0v48TkZw8lgcfasRjtJi7iDTC4qqjyMLkY6y2TRTVDG/86qxK3No7vvJZajzntU3c6MUttiSDubaHL5RuklQ+7MjN5Dp1cD09L3Qqnm9KcjWzbNoyqriBO84VU4aJFF72jJ18qADX/UUj7cxi0ShY19BHX2Vrp3pPSNiePfO7okUrg5Wc4eD7u4eC+aUVHboEX35NhBnfj7/ASrsltIANYFmNarv3tvd67JIsm/Wz3pge6YOSV1pBr2IsGk5UVIXdJ/mm6GVWFlJ9PiELDBGc="
before_install:
- mkdir -p ~/bin
- mkdir -p ~/.config/kubernaut
- |-
openssl aes-256-cbc \
-K $encrypted_95ce0d75e6f7_key \
-iv $encrypted_95ce0d75e6f7_iv \
-in kubernaut-config.json.enc \
-out ~/.config/kubernaut/config.json \
-d
- make docker-login
install:
- ./releng/travis-install.sh
script:
- ./releng/travis-script.sh
deploy:
# Set "GIT_BRANCH" to the value of "MAIN_BRANCH" because the branch a tag originates from is not preserved by Git.
# Because releases occur from $MAIN_BRANCH all this does is ensure the correct Docker image lookups are performed
# for stable version publication.
# If this value is not set then our branch identification logic will set GIT_BRANCH automatically (and incorrectly)
# based on the logic in the Makefile. This will cause a release failure which is expected behavior
- provider: script
# script: make release GIT_BRANCH=$(make print-MAIN_BRANCH)
script: make release
on:
all_branches: true
condition: $GIT_BRANCH =~ ^[0-9]+\.[0-9]+\.[0-9]+$