Skip to content

Commit

Permalink
Semaphore 2.0 - GOPATH and SEMAPHORE_GIT_DIR workaround (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-mo committed Oct 29, 2018
1 parent cfb84c7 commit 3646e31
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ blocks:
- go get github.com/mattn/goveralls
- go get -t -tags=integration -d -v ./...
jobs:
- name: Run Integration Test Suite
- name: Integration
commands:
- make integration
- $GOPATH/bin/goveralls -coverprofile cover-int.out -service semaphore -repotoken "$COVERALLS_REPO_TOKEN"
# GOPATH/bin is not in PATH, so needs to be referred to explicitly
- $GOPATH/bin/goveralls -coverprofile cover-int.out -service semaphore2 -repotoken "$COVERALLS_REPO_TOKEN"
# Workaround for Semaphore 2.0 beta until Go repositories are automatically cloned into GOPATH
env_vars:
- name: GOPATH
value: /home/semaphore/go
- name: SEMAPHORE_GIT_DIR
value: /home/semaphore/go/src/github.com/ti-mo/conntrack
secrets:
- name: coveralls-conntrack

0 comments on commit 3646e31

Please sign in to comment.