-
Notifications
You must be signed in to change notification settings - Fork 5
/
circle.yml
29 lines (24 loc) · 986 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
machine:
environment:
IMPORT_PATH: "github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
PKR_VERSION: 0.9.0
PKR_URL: https://releases.hashicorp.com/packer/${PKR_VERSION}/packer_${PKR_VERSION}_linux_amd64.zip
dependencies:
pre:
- go get github.com/tools/godep
- sudo pip install fabric
override:
- mkdir -p "/home/ubuntu/.go_workspace/src/$IMPORT_PATH"
- rsync -azC --delete ./ "/home/ubuntu/.go_workspace/src/$IMPORT_PATH/"
- cd /home/ubuntu/.go_workspace/src/$IMPORT_PATH && godep go test && godep go install
test:
pre:
- "[[ -f \"${HOME}/bin/packer\" ]] || (wget -O \"/tmp/pkr.zip\" \"${PKR_URL}\" && unzip -o -d \"${HOME}/bin\" \"/tmp/pkr.zip\")"
- cp /home/ubuntu/.go_workspace/bin/packer-provisioner-fabric ${HOME}/bin
- packer version
override:
- cd uat && packer build uat.json
- cd uat && packer build uat_multi.json
general:
artifacts:
- /home/ubuntu/.go_workspace/bin/packer-provisioner-fabric