forked from docker/machine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
53 lines (47 loc) · 1.75 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 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.1 -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 && make build:
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