Compare commits
7 Commits
fix-travis
...
gh/master
Author | SHA1 | Date | |
---|---|---|---|
8eb101ee41 | |||
e1c3c36057 | |||
fe6d0a1b7f | |||
cca8aecb0e | |||
76069a7c36 | |||
67278756c4 | |||
f011a2bcc8 |
36
.travis.yml
36
.travis.yml
@@ -1,19 +1,8 @@
|
||||
### # https://docs.travis-ci.com/user/languages/python/
|
||||
### language: python
|
||||
### python:
|
||||
### - "3.5"
|
||||
### - "3.6"
|
||||
### #- "3.7-dev" # fails due to datrie build failure (snakemake dependency)
|
||||
### # command to install dependencies
|
||||
### install:
|
||||
### - pip install -r requirements.txt
|
||||
### - python setup.py build install
|
||||
### # command to run tests
|
||||
### script:
|
||||
### - pytest
|
||||
###
|
||||
######################
|
||||
#
|
||||
# https://docs.travis-ci.com/user/languages/python/
|
||||
language: python
|
||||
|
||||
python:
|
||||
- "3.5"
|
||||
|
||||
# https://github.com/LiliC/travis-minikube/blob/master/.travis.yml
|
||||
|
||||
@@ -22,17 +11,18 @@ sudo: required
|
||||
env:
|
||||
- CHANGE_MINIKUBE_NONE_USER=true
|
||||
|
||||
# --bootstrapper=localkube comes from
|
||||
# https://github.com/kubevirt/containerized-data-importer/issues/93
|
||||
# and
|
||||
# https://github.com/kubernetes/minikube/issues/2704
|
||||
before_script:
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y coreutils
|
||||
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.7.0/bin/linux/amd64/kubectl && \
|
||||
chmod +x kubectl && sudo mv kubectl /usr/local/bin/
|
||||
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \
|
||||
chmod +x minikube && sudo mv minikube /usr/local/bin/
|
||||
- sudo minikube start --vm-driver=none --kubernetes-version=v1.7.0
|
||||
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.7.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
|
||||
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/0.28.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
|
||||
- sudo minikube start --kubernetes-version=1.11.0 --vm-driver=none --bootstrapper=localkube
|
||||
- minikube update-context
|
||||
- JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; \
|
||||
until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1; done
|
||||
- JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1; done
|
||||
|
||||
script:
|
||||
- kubectl cluster-info
|
||||
|
Reference in New Issue
Block a user