File tree Expand file tree Collapse file tree 4 files changed +41
-10
lines changed Expand file tree Collapse file tree 4 files changed +41
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : test-scripts
2
+ on :
3
+ pull_request :
4
+ paths :
5
+ - ' scripts/**'
6
+ - ' Makefile'
7
+ schedule :
8
+ - cron : ' 0 0 * * *' # daily to pick up releases
9
+ jobs :
10
+ run-local-minikube :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - run : |
15
+ curl -sLo minikube "$(curl -sL https://api.github.com/repos/kubernetes/minikube/releases/latest | jq -r '[.assets[] | select(.name == "minikube-linux-amd64")] | first | .browser_download_url')"
16
+ chmod +x minikube
17
+ sudo mv minikube /bin/
18
+ minikube config set vm-driver none
19
+ sudo make run-local # vm-driver=none requires root
20
+ run-local-kind :
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ - run : |
25
+ curl -sLo kind "$(curl -sL https://api.github.com/repos/kubernetes-sigs/kind/releases/latest | jq -r '[.assets[] | select(.name == "kind-linux-amd64")] | first | .browser_download_url')"
26
+ chmod +x kind
27
+ sudo mv kind /bin/
28
+ kind create cluster
29
+ kind export kubeconfig
30
+ make run-local
Original file line number Diff line number Diff line change 32
32
33
33
# cask packages
34
34
.cask /
35
- dist /
35
+ / dist /
36
36
37
37
# Flycheck
38
38
flycheck_ * .el
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ build-linux: clean $(CMDS)
73
73
build-wait : clean bin/wait
74
74
75
75
bin/wait :
76
- GOOS=linux GOARCH=386 go build -o $@ $(PKG ) /test/e2e/wait
76
+ GOOS=linux GOARCH=386 go build $( MOD_FLAGS ) -o $@ $(PKG ) /test/e2e/wait
77
77
78
78
build-util-linux : arch_flags=GOOS=linux GOARCH=386
79
79
build-util-linux : build-util
Original file line number Diff line number Diff line change 5
5
6
6
set -e
7
7
8
+ [ -x " $( command -v kind) " ] && [[ " $( kubectl config current-context) " =~ ^kind-? ]] && KIND=1 NO_MINIKUBE=1
9
+
10
+ if [ -z " $NO_MINIKUBE " ]; then
11
+ pgrep -f " [m]inikube" > /dev/null || minikube start --kubernetes-version=" v1.16.2" --extra-config=apiserver.v=4 || { echo ' Cannot start minikube.' ; exit 1; }
12
+ eval " $( minikube docker-env) " || { echo ' Cannot switch to minikube docker' ; exit 1; }
13
+ kubectl config use-context minikube
14
+ fi
15
+
8
16
docker build -f local.Dockerfile -t quay.io/operator-framework/olm:local -t quay.io/operator-framework/olm-e2e:local ./bin
9
17
docker build -f test/e2e/hang.Dockerfile -t hang:10 ./bin
10
18
11
- if [ -x " $( command -v kind ) " ] && [[ " $( kubectl config current-context ) " =~ ^kind- ? ] ]; then
19
+ if [ -n " $KIND " ]; then
12
20
kind load docker-image quay.io/operator-framework/olm:local
13
21
kind load docker-image quay.io/operator-framework/olm-e2e:local
14
22
kind load docker-image hang:10
15
- exit 0 # don't bother with minikube if kind is active
16
- fi
17
-
18
- if [ -z " $NO_MINIKUBE " ]; then
19
- pgrep -f " [m]inikube" > /dev/null || minikube start --kubernetes-version=" v1.16.2" --extra-config=apiserver.v=4 || { echo ' Cannot start minikube.' ; exit 1; }
20
- eval " $( minikube docker-env) " || { echo ' Cannot switch to minikube docker' ; exit 1; }
21
- kubectl config use-context minikube
22
23
fi
You can’t perform that action at this time.
0 commit comments