@@ -14,36 +14,30 @@ jobs:
14
14
env :
15
15
- CLUSTER=minikube
16
16
- CHANGE_MINIKUBE_NONE_USER=true
17
+ script : test/test-go.sh
18
+ name : Go on minikube
19
+ - before_script : hack/ci/setup-minikube.sh
20
+ env :
21
+ - CLUSTER=minikube
22
+ - CHANGE_MINIKUBE_NONE_USER=true
23
+ script : test/test-ansible.sh
24
+ name : Ansible on minikube
17
25
- before_script : hack/ci/setup-openshift.sh
18
26
env : CLUSTER=openshift
27
+ script : test/test-go.sh
28
+ name : Go on OpenShift
29
+ - before_script : hack/ci/setup-openshift.sh
30
+ env : CLUSTER=openshift
31
+ script : test/test-ansible.sh
32
+ name : Ansible on OpenShift
19
33
20
34
install :
21
35
- curl -Lo dep https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 && chmod +x dep && sudo mv dep /usr/local/bin/
22
36
- dep ensure
37
+ - make install
23
38
# Create example operator directory
24
39
- mkdir -p $GOPATH/src/github.com/example-inc
25
-
26
- script :
27
- - make install
28
- - go test ./commands/...
29
- - go test ./pkg/...
30
- - go test ./test/e2e/...
31
- - cd test/test-framework
32
- # test framework with defaults
33
- - operator-sdk test local .
34
- # test operator-sdk test flags
35
- - operator-sdk test local . --global-manifest deploy/crd.yaml --namespaced-manifest deploy/namespace-init.yaml --go-test-flags "-parallel 1" --kubeconfig $HOME/.kube/config
36
- # test operator-sdk test local single namespace mode
37
- - kubectl create namespace test-memcached
38
- - operator-sdk test local . --namespace=test-memcached
39
- - kubectl delete namespace test-memcached
40
- # go back to project root
41
- - cd ../..
42
- - go vet ./...
43
- - ./hack/check_license.sh
44
- - ./hack/check_error_case.sh
45
- # Make sure repo is in clean state
46
- - git diff --exit-code
40
+ - sudo pip install ansible
47
41
48
42
after_success :
49
43
- echo 'Build succeeded, operator was generated, memcached operator is running on $CLUSTER, and unit/integration tests pass'
0 commit comments