Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Move from Travis to Semaphore CI
Browse files Browse the repository at this point in the history
We need somewhere that will let us run `kvm`; that excludes GitHub
actions and CircleCI (unless we set up our own machines as runners)
  • Loading branch information
bboreham committed Jan 13, 2021
1 parent 45f2e72 commit a31f3be
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 31 deletions.
35 changes: 35 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -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
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

0 comments on commit a31f3be

Please sign in to comment.