mirror of https://github.com/docker/docs.git
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
machine:
|
|
pre:
|
|
# Install gvm
|
|
- bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/1.0.22/binscripts/gvm-installer)
|
|
# Install bats
|
|
- git clone https://github.com/sstephenson/bats.git && cd bats && sudo ./install.sh /usr/local
|
|
|
|
post:
|
|
- gvm install go1.5.2 -B --name=stable
|
|
|
|
environment:
|
|
# Convenient shortcuts to "common" locations
|
|
CHECKOUT: /home/ubuntu/$CIRCLE_PROJECT_REPONAME
|
|
BASE_DIR: src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
|
|
# Trick circle brainflat "no absolute path" behavior
|
|
BASE_STABLE: ../../../$HOME/.gvm/pkgsets/stable/global/$BASE_DIR
|
|
|
|
dependencies:
|
|
override:
|
|
- >
|
|
gvm use stable &&
|
|
mkdir -p "$(dirname $BASE_STABLE)" &&
|
|
cp -R "$CHECKOUT" "$BASE_STABLE"
|
|
|
|
test:
|
|
pre:
|
|
- gvm use stable && go version
|
|
- gvm use stable && make build:
|
|
pwd: $BASE_STABLE
|
|
- gvm use stable && GO15VENDOREXPERIMENT=1 go get github.com/docker/docker-machine-driver-ci-test
|
|
|
|
override:
|
|
- DRIVER=none test/integration/run-bats.sh test/integration/cli:
|
|
pwd: $BASE_STABLE
|
|
timeout: 600
|
|
- PATH=../../../../bin:$PATH DRIVER=ci-test test/integration/run-bats.sh test/integration/3rdparty:
|
|
pwd: $BASE_STABLE
|
|
timeout: 600
|