-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from tiraboschi/travis_ci
Setup Travis CI
- Loading branch information
Showing
6 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# remove once https://github.com/fabiand/traviskube/pull/26 got merged/fixed | ||
openshift.local.clusterup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "ci"] | ||
path = ci | ||
url = https://github.com/fabiand/traviskube |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
sudo: required | ||
dist: xenial | ||
|
||
branches: | ||
only: | ||
- master | ||
- "/^v[0-9]/" | ||
|
||
env: | ||
global: | ||
- KUBEVIRT_VER=0.9.1 | ||
|
||
jobs: | ||
include: | ||
# - stage: Tests | ||
# name: "Default (minikube with latest k8s)" | ||
|
||
# - name: "minikube (latest k8s)" | ||
# env: CPLATFORM=minikube | ||
|
||
- name: "oc cluster (latest okd)" | ||
env: CPLATFORM=oc_cluster | ||
|
||
- name: "minishift (latest okd)" | ||
env: CPLATFORM=minishift | ||
|
||
# - name: "minikube (K8s v1.10)" | ||
# env: CPLATFORM=minikube CVER=1.10.7 | ||
|
||
cache: | ||
directories: | ||
- cache | ||
- "~/.minishift/cache" | ||
- "~/.minikube/cache" | ||
|
||
before_script: | ||
## FIXME Workaround for https://github.com/kubernetes/kubernetes/issues/61058 | ||
### And https://github.com/LiliC/travis-minikube/blob/e0f26f7b388057f51a0e2558afd5f990e07b6c49/.travis.yml#L11 | ||
- sudo mount --make-rshared / | ||
|
||
- bash -x ci/prepare-host $CPLATFORM | ||
#- bash -x ci/prepare-host virtctl | ||
- bash -x ci/start-cluster $CPLATFORM $CVER | ||
#- bash -x ci/deploy-kubevirt $CPLATFORM | ||
|
||
script: | ||
- timeout 10m bash -x test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ci/wait-pods-ok | ||
make test | ||
make build | ||
make deploy | ||
# give everything time to come up - PLEASE FIX | ||
sleep 120 | ||
# fetch operator logs | ||
oc logs $(oc get pods --selector name=cdi-operator --output=name) | ||
# check for CDI related pods in kube-system ns | ||
oc get pod -o name --namespace=kube-system | grep cdi |