From a31f3be3f149e4c7684727afd2e82bbccd28b8f5 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Wed, 13 Jan 2021 14:20:31 +0000 Subject: [PATCH] Move from Travis to Semaphore CI We need somewhere that will let us run `kvm`; that excludes GitHub actions and CircleCI (unless we set up our own machines as runners) --- .semaphore/semaphore.yml | 35 +++++++++++++++++++++++++++++++++++ .travis.yml | 31 ------------------------------- 2 files changed, 35 insertions(+), 31 deletions(-) create mode 100644 .semaphore/semaphore.yml delete mode 100644 .travis.yml diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml new file mode 100644 index 000000000..3b7773f15 --- /dev/null +++ b/.semaphore/semaphore.yml @@ -0,0 +1,35 @@ +version: v1.0 +name: CI Build + +agent: + machine: + type: e1-standard-2 + os_image: ubuntu1804 + +blocks: + - name: Run tests + task: + env_vars: + - name: GIMME_GO_VERSION + value: "1.14.2" + jobs: + - name: Tests + commands: + - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | bash)" # install specific go version + - | + # https://ignite.readthedocs.io/en/latest/installation.html + sudo apt-get install -y cpu-checker + sudo apt-get install -y --no-install-recommends dmsetup openssh-client git binutils + # Install containerd if it's not present -- prevents breaking docker-ce installations + sudo which containerd || sudo apt-get install -y --no-install-recommends containerd + - kvm-ok + - | + export CNI_VERSION=v0.8.7 + export ARCH=$([ $(uname -m) = "x86_64" ] && echo amd64 || echo arm64) + sudo mkdir -p /opt/cni/bin + curl -sSL https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-${ARCH}-${CNI_VERSION}.tgz | sudo tar -xz -C /opt/cni/bin + - checkout + - make ignite ignite-spawn ignited bin/amd64/Dockerfile GO_MAKE_TARGET=local + - make test + - make root-test + - make e2e-nobuild # this depends on Semaphore CI's support for nested virtualization diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 818dcb595..000000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -language: minimal # git checkout will not be in a GOPATH -dist: bionic # Ubuntu 18.04 required for nested-virt - -services: -- docker - -env: -- GIMME_GO_VERSION=1.14.2 - -install: -- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | bash)" # install specific go version -- | - # https://ignite.readthedocs.io/en/latest/installation.html - sudo apt-get install -y cpu-checker - sudo apt-get install -y --no-install-recommends dmsetup openssh-client git binutils - sudo which containerd || sudo apt-get install -y --no-install-recommends containerd - # Install containerd if it's not present -- prevents breaking docker-ce installations -- kvm-ok -- | - export CNI_VERSION=v0.8.7 - export ARCH=$([ $(uname -m) = "x86_64" ] && echo amd64 || echo arm64) - sudo mkdir -p /opt/cni/bin - curl -sSL https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-${ARCH}-${CNI_VERSION}.tgz | sudo tar -xz -C /opt/cni/bin - -before_script: -- make ignite ignite-spawn ignited bin/amd64/Dockerfile GO_MAKE_TARGET=local - -script: -- make test -- make root-test -- make e2e-nobuild # this depends on Travis CI's support for nested virtualization