Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fix travis.ci glide path
Browse files Browse the repository at this point in the history
* only run go_fmt, go_imports for small test to speed up ci.
* specify GLIDE_HOME, so .glide/cache does not pollute source code.
* add glide --version for debugging.
  • Loading branch information
nanliu committed Jan 20, 2017
1 parent 48cf90f commit 0b36a9e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
global:
- SNAP_SOURCE=/home/travis/gopath/src/github.com/intelsdi-x/snap
- GO15VENDOREXPERIMENT=1
- GLIDE_HOME="${HOME}/.glide"
matrix:
- SNAP_TEST_TYPE=legacy
- SNAP_TEST_TYPE=small
Expand Down
1 change: 1 addition & 0 deletions scripts/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ _go_path

_go_get github.com/Masterminds/glide

_debug "$(glide --version)"
_info "restoring dependency with glide"
(cd "${__proj_dir}" && glide install)
6 changes: 5 additions & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
# Support travis.ci environment matrix:
SNAP_TEST_TYPE="${SNAP_TEST_TYPE:-$1}"

UNIT_TEST="${UNIT_TEST:-"gofmt goimports go_test go_cover"}"
if [[ "${SNAP_TEST_TYPE}" == small ]]; then
UNIT_TEST="${UNIT_TEST:-"gofmt goimports go_test go_cover"}"
else
UNIT_TEST="${UNIT_TEST:-"go_test go_cover"}"
fi

set -e
set -u
Expand Down

0 comments on commit 0b36a9e

Please sign in to comment.