Skip to content

Commit

Permalink
try creating circle.yml
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
  • Loading branch information
Kubuxu committed Sep 28, 2016
1 parent 5b4a6ea commit 73f977d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions test/sharness/circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
machine:
environment:
TEST_NO_FUSE: 1
TEST_VERBOSE: 1
TEST_NO_DOCKER: 1
TRAVIS: 1
CIRCLE: 1
IMPORT_PATH: "github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
GOPATH: "$HOME/.go_workspace"

post:
- sudo rm -rf /usr/local/go
- if [ ! -e go1.7.linux-amd64.tar.gz ]; then curl -o go1.7.linux-amd64.tar.gz https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz; fi
- sudo tar -C /usr/local -xzf go1.7.linux-amd64.tar.gz

dependencies:
pre:
# setup ipv6
- sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 net.ipv6.conf.default.disable_ipv6=0 net.ipv6.conf.all.disable_ipv6=0

override:
- rm -rf "$HOME/.go_workspace/src/$IMPORT_PATH"
- mkdir -p "$HOME/.go_workspace/src/$IMPORT_PATH"
- cp -a ./* "$HOME/.go_workspace/src/$IMPORT_PATH"
- cd "$HOME/.go_workspace/src/$IMPORT_PATH" && gx install --global

cache_directories:
- ~/go1.7.linux-amd64.tar.gz
- "$HOME/.go_workspace/src/gx/ipfs"

test:
override:
- gx rewrite && go test -v ./... && gx rewrite --undo
pwd: "../.go_workspace/src/$IMPORT_PATH"

0 comments on commit 73f977d

Please sign in to comment.