forked from jupyterhub/zero-to-jupyterhub-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
102 lines (99 loc) · 4.09 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
dist: bionic
language: python
python:
- 3.6
git:
## depth set to false overrides travis default behavior to use shallow clones
## with depth 50 that can cause issues
##
## ref: https://github.com/jupyterhub/chartpress#shallow-clones
##
depth: false
services:
- docker
## stages declares and orders stages
##
## ref: https://docs.travis-ci.com/user/build-stages/#build-stages-and-deployments
##
stages:
- name: lint and validate
- name: test
- name: publish
if: >
(
branch IN (master)
AND
type IN (push)
)
OR
tag IS present
install:
- set -e
- pip3 install --no-cache-dir -r dev-requirements.txt
- . ci/common
stage: test
script:
- setup_kubectl
- setup_kind
- setup_helm
- ./ci/travis-docker-fix
- ./dev kind create
- helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/
- helm repo update
- ./dev upgrade --chart jupyterhub/jupyterhub --version 0.8.2
- ./dev upgrade --chart ./jupyterhub
- ./dev port-forward
- ./dev test
env:
## NOTE: The environment variables will be expanded to multiple jobs. For
## additional individual jobs, only the first entry is used.
##
## ref: https://docs.travis-ci.com/user/build-stages/#build-stages-and-build-matrix-expansion
##
##
## Z2JH_KUBE_VERSION should match a released kindest/node image tag, but they
## are currently not automatically published.
##
## ref: https://hub.docker.com/r/kindest/node/tags
## ref: https://github.com/kubernetes-sigs/kind/issues/197
##
- Z2JH_KUBE_VERSION=1.13.12
- Z2JH_KUBE_VERSION=1.15.6
- Z2JH_KUBE_VERSION=1.16.3
jobs:
## allow experimental setups to fail
##
## ref: https://docs.travis-ci.com/user/customizing-the-build/#rows-that-are-allowed-to-fail
##
# allow_failures:
# - env: *allow_failure
## don't wait for the jobs that are allowed to fail to report success
##
## ref: https://docs.travis-ci.com/user/customizing-the-build/#fast-finishing
##
# fast_finish: true
## include additional individual jobs
##
include:
- stage: lint and validate
script:
- setup_helm
- setup_kubeval
- ./dev check templates
env:
## inclusions of more than three versions cause rate limiting failures
- Z2JH_VALIDATE_KUBE_VERSIONS=1.11.0,1.14.0,1.16.0
- stage: publish
script:
- setup_git_crypt
- setup_helm
- helm init --client-only
- ./ci/travis-docker-fix
- ./ci/publish
env:
## encrypted environment variables, used on push to master in the
## publish script to in turn decrypt a SSH key
##
## ref: https://docs.travis-ci.com/user/environment-variables/#encrypting-environment-variables
- secure: jpFpbMccpjGP+otWH2Z03VFdtR9AAu2vzrNxsoZ3IvJvrO4MfzYJ3uSCDQuB0NG9gBgaAscpTJtliPTEi7njXHLcsFeWXLUmeBEHLozYxfzDQzMvW3EYdNWcC7oVAAt3de0i0ojw9rGswiofhbu2dAe+Xd2bejv1+PVJcEC3SRPGy17kb6bme6gD3zty5ft4VpzP0nomUNqfZBRLUYxSZuKlHJaZ6Nuq434rKmXrcN6uy+eEWDorTbjyM22IIYgUmrhg++Qtu/MBR7/rriPhyRltCU14361bcxqyq2Hw+HNG8D3hsqo5TiEiYwxOQcXRgddL+Ci6/y0L1EvqOQc+1V8ycwNs2oNicwNgSn5A+9HpF495Kae039hGtj2Gpt4IbplSYwKFq/sFTq+CekxdD2YVQmGvsjep4bNVL66o2RSZVAW1Bg/G8/sSe3BwgD8IToy9+1NHPPuaVupeukRqNyUDcVvWH8hdb8AkXYY87+546etYDpn91GQnhTEberKbXX4UCmpKNXpXoprLE8nQLGb6TIoHPTyA+RRNQ4erDzMjqF43UVmhOZTtkGaRgIWK7vDAKpLUnuOguuhJUNpYpRggGQsMV8cZnaCumy5OFUf6i6rfN0Ru6a+/Bm7grJiAcnZlU7igaxgI38QaJgCKcqqzIImdcRYNQC74/Ok/1oM=
- secure: BK++G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