-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
38 lines (35 loc) · 1.11 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
machine:
environment:
PACKER_VERSION: 0.10.1
PACKER_LOG: 1
DEBIAN_MAJOR_VERSION: 8
DEBIAN_MINOR_VERSION: 5
ARCH: amd64
HEADLESS: true
dependencies:
pre:
- >
sudo apt-get install -qq wget unzip qemu-system-x86 &&
sudo mkdir /opt/packer &&
pushd /opt/packer &&
echo "Downloading packer ${PACKER_VERSION}..." &&
sudo wget --no-verbose https://releases.hashicorp.com/packer/0.10.1/packer_${PACKER_VERSION}_linux_amd64.zip &&
echo "Installing packer ${PACKER_VERSION}..." &&
sudo unzip packer_${PACKER_VERSION}_linux_amd64.zip &&
sudo rm packer_${PACKER_VERSION}_linux_amd64.zip &&
pushd /usr/bin &&
sudo ln -s /opt/packer/* .
test:
override:
- packer validate -syntax-only ubuntu-server.json:
parallel: true
timeout: 600
- jq 'del(.["post-processors", "push"])' debian.json | sudo -E -s packer build -var 'ssh_wait_timeout=110m' -var 'accelerator=none' -var 'cpus=2' -only=qemu -:
parallel: true
timeout: 7200
deployment:
publish:
branch: master
commands:
- ls:
timeout: 7200