Skip to content

Commit

Permalink
circleci totally change config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
drewwells committed Oct 23, 2020
1 parent 90bbc07 commit 68b8836
Showing 1 changed file with 21 additions and 32 deletions.
53 changes: 21 additions & 32 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
machine:
environment:
CC: gcc
CXX: g++
GOPATH: /home/ubuntu/.go_workspace
GOVER: 1.7.1
GOTAR: /home/ubuntu/go${GOVER}.linux-amd64.tar.gz
post:
- echo $GOVER
- mkdir -p ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}
- rm -rf ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/*
- ln -sf ~/${CIRCLE_PROJECT_REPONAME} ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
general:
build_dir: ../.go_workspace/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
dependencies:
cache_directories:
- ~/go1.7.1.linux-amd64.tar.gz
pre:
- echo "GOVER $GOVER"
- echo "GOTAR $GOTAR"
- go version
- test -e ${GOTAR} || wget https://storage.googleapis.com/golang/go${GOVER}.linux-amd64.tar.gz -O ${GOTAR}
- go version | grep "$GOVER " || (sudo rm -rf /usr/local/go; sudo tar -C /usr/local -xzf ${GOTAR})
- go version
post:
- go env
- pwd
- go get golang.org/x/net/context
- go test -i -race $(go list -f '{{if len .TestGoFiles}}{{.ImportPath}}{{end}}' ./... | grep -v /vendor/)
test:
override:
- go test -race $(go list -f '{{if len .TestGoFiles}}{{.ImportPath}}{{end}}' ./... | grep -v /vendor/)
version: 2.1
jobs:
build:
docker:
- image: 'cimg/go:1.15.3'
# auth:
# username: mydockerhub-user
# password: $DOCKERHUB_PASSWORD
environment:
CC: gcc
CXX: g++
GOPATH: /home/ubuntu/.go_workspace
GOVER: 1.7.1
GOTAR: /home/ubuntu/go${GOVER}.linux-amd64.tar.gz
steps:
- checkout
- run:
- go version
- test -e ${GOTAR} || wget https://storage.googleapis.com/golang/go${GOVER}.linux-amd64.tar.gz -O ${GOTAR}
- go get golang.org/x/net/context
- go test -i -race $(go list -f '{{if len .TestGoFiles}}{{.ImportPath}}{{end}}' ./... | grep -v /vendor/)

0 comments on commit 68b8836

Please sign in to comment.