Skip to content

Commit

Permalink
Implement Cirrus-CI Integration (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
awnumar authored May 30, 2019
1 parent 3546eef commit 4c28664
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 42 deletions.
68 changes: 68 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -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 ./...
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<h3 align="center">MemGuard</h3>
<p align="center">Easy and secure handling of sensitive memory, in pure Go.</p>
<p align="center">
<a href="https://travis-ci.org/awnumar/memguard"><img src="https://travis-ci.org/awnumar/memguard.svg?branch=master"></a>
<a href="https://ci.appveyor.com/project/awnumar/memguard/branch/master"><img src="https://ci.appveyor.com/api/projects/status/nrtqmdolndm0pcac/branch/master?svg=true"></a>
<a href="https://cirrus-ci.com/github/awnumar/memguard"><img src="https://api.cirrus-ci.com/github/awnumar/memguard.svg"></a>
<a href="https://godoc.org/github.com/awnumar/memguard"><img src="https://godoc.org/github.com/awnumar/memguard?status.svg"></a>
<a href="https://goreportcard.com/report/github.com/awnumar/memguard"><img src="https://goreportcard.com/badge/github.com/awnumar/memguard"></a>
</p>
Expand Down
26 changes: 0 additions & 26 deletions appveyor.yml

This file was deleted.

0 comments on commit 4c28664

Please sign in to comment.