From 4c28664de7a7b9b4283ea503689e7c7ccb29f998 Mon Sep 17 00:00:00 2001 From: Awn Date: Thu, 30 May 2019 05:55:28 +0100 Subject: [PATCH] Implement Cirrus-CI Integration (#84) --- .cirrus.yml | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 14 ----------- README.md | 3 +-- appveyor.yml | 26 -------------------- 4 files changed, 69 insertions(+), 42 deletions(-) create mode 100644 .cirrus.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 00000000..22fae2cd --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,68 @@ +linux_task: + container: + image: ubuntu:latest + env: + GOPROXY: https://proxy.golang.org + GOPATH: /tmp/go + PATH: ${GOPATH}/bin:${PATH} + CIRRUS_WORKING_DIR: /tmp/go/src/github.com/${CIRRUS_REPO_FULL_NAME} + install_script: + - apt-get update + - apt-get install git golang-go -y + clone_script: | + if [[ -z "$CIRRUS_PR" ]]; then + git clone --recursive --branch=$CIRRUS_BRANCH https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git ${CIRRUS_WORKING_DIR} + git reset --hard $CIRRUS_CHANGE_IN_REPO + else + git clone --recursive https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git ${CIRRUS_WORKING_DIR} + git fetch origin pull/$CIRRUS_PR/head:pull/$CIRRUS_PR + git reset --hard $CIRRUS_CHANGE_IN_REPO + fi + build_script: + - go version + - go build -race -v ./... + test_script: + - go test -race -count=100 ./... + - go test -race -v -count=1 ./... + +osx_task: + osx_instance: + image: mojave-base + env: + GOPROXY: https://proxy.golang.org + GOPATH: /tmp/go + PATH: ${GOPATH}/bin:${PATH} + CIRRUS_WORKING_DIR: /tmp/go/src/github.com/${CIRRUS_REPO_FULL_NAME} + install_script: + - brew install git go + clone_script: | + if [[ -z "$CIRRUS_PR" ]]; then + git clone --recursive --branch=$CIRRUS_BRANCH https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git ${CIRRUS_WORKING_DIR} + git reset --hard $CIRRUS_CHANGE_IN_REPO + else + git clone --recursive https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git ${CIRRUS_WORKING_DIR} + git fetch origin pull/$CIRRUS_PR/head:pull/$CIRRUS_PR + git reset --hard $CIRRUS_CHANGE_IN_REPO + fi + build_script: + - go version + - go build -race -v ./... + test_script: + - go test -race -count=100 ./... + - go test -race -v -count=1 ./... + +windows_task: + windows_container: + image: golang:windowsservercore-1803 + os_version: 1803 + env: + GOPROXY: https://proxy.golang.org + GOPATH: C:\go + PATH: ${GOPATH}\bin:${PATH} + CIRRUS_WORKING_DIR: C:\go\src\github.com\${CIRRUS_REPO_FULL_NAME} + build_script: + - go version + - go build -race -v ./... + test_script: + - go test -race -count=100 ./... + - go test -race -v -count=1 ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c2abef4a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: go - -os: - - linux - - osx - -script: - - go build -race -v . - - go test -race -v ./... - -notifications: - email: false - slack: - secure: hQP7PFP4jC+5csuxeqIxAvfJJuPaSuhVknXMc0UPB1hRYbXHrKsYMxS520KFr6fA+jBpusp2yWkCRKXikFFbkcdMrK5omJ+uxWF7zZteB2ldZ0R9RUpWle1BuJqxcVxjSoDqEr58k3DyGyl34xNDGq1QWvwdgZVGqMwAEUeKS5Y/46rt+7Mm8iZ2p/xKYXaSd/XBw5IhaRaxEflWr4cMgq4ishCSfqMgtSD14A+VjNmjZy4myh3b8JiEoxQWmmY0a+zp9kM5AnsmI87pTYRkvir1bplviKWvfwrYjXXx1pa1QHHxGCJUlhgNzcxNMoM04qT5shXDojapitUX8e957qrie96/nOBBbb2YLuZsi+GG6aupfzbGY3xoz1MiPMoiup1QooBHfC1Biq7pso2cqXttDQT1mwet29C6D5g6z0KfTFmoYJqlSm79C62RSXrKKEGiXwKsCRuj0z6R84NwijtC1Zf6Um0T/ChF4dTgaA8CYR2WScz843wsSgkREXokhCdt9TcBYBZR8QREo6OmcmMgqiA80iiv0ozT99uqiaqzDDxHN7tTcq0fQs3a1xTgE6s88sCV3zP1VqzcvBW16z8IF94pLsu831FpZG11MPjgDeHxaSij6B8/7oeNTByUTtyjneTe9sVFps8MAko6KP/n0P61B72vo8mlNHL6Ne8= diff --git a/README.md b/README.md index 588abb33..ec3e01a6 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,7 @@

MemGuard

Easy and secure handling of sensitive memory, in pure Go.

- - +

diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index ab12143c..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,26 +0,0 @@ -version: '{build}' - -platform: Any CPU - -clone_folder: c:\go\src\github.com\awnumar\memguard - -environment: - GOPATH: c:\go - -install: -- set PATH=%GOPATH%\bin;c:\go\bin;%PATH% -- go version - -build_script: -- go build -race -v . - -test_script: -- go test -race -v ./... - -notifications: -- provider: Slack - incoming_webhook: - secure: WjopZ/uuTGqqu1XhbjE05ZHSGcoVa7M07WwKQuGLqkO4AD1xGj+G817tMC1Ke0XxB3dBNQ++Ryr/SlzrjUVSHetvUgEpjE380XaCzXIdXP8= - on_build_success: true - on_build_failure: true - on_build_status_changed: true