Files
docker-docs/circle.yml
Olivier Gambier 5fbfbe1ff7 Rehauled build system and integration testing
- USE_CONTAINER allow to seamlessly run targets inside or outside containers
- all build calls have been harmonized, honoring the same env variables
- contributing doc has been streamlined according to that
- kill the distinction between remote and local docker builds
- got rid of some of the byzantine calls in various asorted scripts
- support for static build, debug builds, verbose

Signed-off-by: Olivier Gambier <olivier@docker.com>
2015-09-18 15:47:00 -07:00

54 lines
1.8 KiB
YAML

# Pony-up!
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
# - sudo apt-get install -y virtualbox
post:
- gvm install go1.5 -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
# BASE_BLEED: ../../../$HOME/.gvm/pkgsets/bleed/global/$BASE_DIR
BUILDTAGS: ""
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 && TARGET_ARCH=amd64 TARGET_OS=linux make build-x:
pwd: $BASE_STABLE
override:
- DRIVER=none test/integration/run-bats.sh test/integration/cli:
pwd: $BASE_STABLE
timeout: 600
# - DRIVER=virtualbox test/integration/run-bats.sh test/integration/core:
# pwd: $BASE_STABLE
# timeout: 1200
# - DRIVER=digitalocean test/integration/run-bats.sh test/integration/core:
# pwd: $BASE_STABLE
# timeout: 1200
# - DRIVER=azure test/integration/run-bats.sh test/integration/core:
# pwd: $BASE_STABLE
# timeout: 1200
# - DRIVER=amazonec2 test/integration/run-bats.sh test/integration/core:
# pwd: $BASE_STABLE
# timeout: 1200
# - gvm use stable && DRIVER=amazonec2 test/integration/run-bats.sh test/integration/core:
# pwd: $BASE_STABLE