From 7837a6edabac9d16f1f5dc2d78dbac9cfe4e08d9 Mon Sep 17 00:00:00 2001 From: Ilya Kislenko Date: Wed, 28 Mar 2018 16:06:38 -0700 Subject: [PATCH] [kanister] moving testing to travisCI (#2597) * [kanister] moving testing to travisCI * changing badge to travis * using glide bin instead of apt-get * typo tag -> tar --- .travis.yml | 28 ++++++++++++++++++++++++++++ README.md | 2 +- shippable.yml | 30 ------------------------------ 3 files changed, 29 insertions(+), 31 deletions(-) create mode 100644 .travis.yml delete mode 100644 shippable.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..299a2129f9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +sudo: required +services: + - docker + +language: go + +go: + - "1.10.x" + +# This moves Kubernetes specific config files. +env: +- CHANGE_MINIKUBE_NONE_USER=true + +before_install: +- sudo bash build/local_kubernetes.sh get_minikube +- wget --progress=dot:mega https://storage.googleapis.com/kubernetes-release/release/v1.8.4/bin/linux/amd64/kubectl +- sudo chmod +x kubectl +- sudo mv kubectl /usr/local/bin/kubectl +- wget --progress=dot:mega https://github.com/Masterminds/glide/releases/download/v0.13.1/glide-v0.13.1-linux-amd64.tar.gz -O glide.tar.gz +- tar zxfp glide.tar.gz linux-amd64/glide --strip=1 +- sudo mv glide /usr/local/bin/glide + +script: +- make build DOCKER_BUILD=false +- make docs +- sudo bash build/local_kubernetes.sh start_minikube +- make test DOCKER_BUILD=false + diff --git a/README.md b/README.md index dcc32270b0..2d2d8092fd 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # Kanister [![Go Report Card](https://goreportcard.com/badge/github.com/kanisterio/kanister)](https://goreportcard.com/report/github.com/kanisterio/kanister) -[![Run Status](https://api.shippable.com/projects/5a18e8649f19c90600633402/badge?branch=master)](https://app.shippable.com/github/kanisterio/kanister) +[![Build Status](https://travis-ci.org/kanisterio/kanister.svg?branch=master)](https://travis-ci.org/kanisterio/kanister) ## Overview Kanister is a framework that enables application-level data management on Kubernetes. It allows domain experts to capture application specific data management tasks via Blueprints, which can be easily shared and extended. The framework takes care of the tedious details surrounding execution on Kubernetes and presents a homogeneous operational experience across applications at scale. diff --git a/shippable.yml b/shippable.yml deleted file mode 100644 index 32e6fb1792..0000000000 --- a/shippable.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: go - -go: -- 1.9.1 - -branches: - only: - - master - -build: - pre_ci_boot: - options: "-v $SHIPPABLE_BUILD_DIR:$SHIPPABLE_BUILD_DIR --privileged=true" - - ci: - - add-apt-repository -y ppa:masterminds/glide && apt-get update -y 2> /dev/null - - apt-get install -y glide - - make build DOCKER_BUILD=false - - make docs - - bash build/local_kubernetes.sh start_minikube - - make test DOCKER_BUILD=false - - post_ci: - - bash build/local_kubernetes.sh stop_minikube - - on_success: - - export IMAGE_TAG="${BUILD_NUMBER}.${COMMIT}" - #- if [ "${IS_PULL_REQUEST}" == "false" ] && [ "${BRANCH}" == "master" ]; then make push ${IMAGE_TAG} DOCKER_BUILD=false; fi - - on_failure: - - echo "$(minikube logs)"