-
Notifications
You must be signed in to change notification settings - Fork 8
/
circle.yml
35 lines (30 loc) · 878 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
machine:
environment:
IMPORT_PATH: "github.com/gruntwork-io/${CIRCLE_PROJECT_REPONAME}"
REPO: "$HOME/.go_workspace/src/${IMPORT_PATH}"
GOOS: linux
GO15VENDOREXPERIMENT: 1
dependencies:
override:
# Get our repo into the CircleCI GOPATH.
- |
mkdir -p "${REPO}"
rm -rf "${REPO}"
ln -s "${HOME}/${CIRCLE_PROJECT_REPONAME}" "${REPO}"
# Install glide to fetch Go dependencies
- |
if [[ ! -d ~/glide ]]; then
wget https://github.com/Masterminds/glide/releases/download/0.10.2/glide-0.10.2-linux-amd64.zip
unzip glide-0.10.2-linux-amd64.zip -d ~/glide
fi
# Run glide
- |
cd ${REPO}
~/glide/linux-amd64/glide install
cache_directories:
- ~/glide
test:
override:
- |
sudo chmod 0755 "${REPO}/_ci/run-tests.sh"
${REPO}/_ci/run-tests.sh