forked from operator-framework/operator-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (26 loc) · 906 Bytes
/
.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
language: go
go_import_path: github.com/operator-framework/operator-sdk
sudo: required
services:
- docker
go:
- 1.10.3
jobs:
include:
- before_script: hack/ci/setup-openshift.sh
env: CLUSTER=openshift
script: make test/ci-go
name: Go on OpenShift
- before_script: hack/ci/setup-openshift.sh
env: CLUSTER=openshift
script: make test/ci-ansible
name: Ansible on OpenShift
install:
- 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/
- dep ensure
- make install
- sudo pip install ansible
after_success:
- echo 'Build succeeded, operator was generated, memcached operator is running on $CLUSTER, and unit/integration tests pass'
after_failure:
- echo 'Build failed, operator failed to generate, memcached operator is not running on $CLUSTER, or unit/integration tests failed'