File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 66 strategy :
77 maxParallel : 4
88 matrix :
9- windows_7 :
10- template : windows_7
9+ windows_10 :
10+ template : windows_10
1111 steps :
1212 - bash : |
1313 wget -nv -nc -O packer_1.6.0_darwin_amd64.zip https://releases.hashicorp.com/packer/1.6.0/packer_1.6.0_darwin_amd64.zip
@@ -28,15 +28,12 @@ jobs:
2828 sysctl -a | grep mem
2929 df -h .
3030 displayName: Dump software version
31- - bash : |
32- wget -nv -nc https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso -O $(Agent.BuildDirectory)/virtio-win.iso
33- displayName: Download virtio-win iso
3431 - bash : |
3532 # Set PACKER_LOG to 1 to troubleshoot infrastructure issues
3633 # export PACKER_LOG=1
3734 export PACKER_CACHE_DIR=$(Agent.BuildDirectory)/packer_cache/
3835 # See https://github.com/ansible/ansible/issues/49207
3936 # See https://github.com/ansible/ansible/issues/32499
4037 export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
41- packer build --only=virtualbox-iso --var virtio_win_iso=$(Agent.BuildDirectory)/virtio-win.iso $(template).json
38+ packer build --only=virtualbox-iso --var memory_size=6144 --var disk_size=30720 $(template).json
4239 displayName: Build box
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ dist: bionic
44
55jobs :
66 include :
7- - env : PROVIDER=qemu TEMPLATE=windows_7 VIRT_GROUP=kvm
7+ - env : PROVIDER=qemu TEMPLATE=windows_10 VIRT_GROUP=kvm
88
99install :
1010# Install Packer. Travis ships with Packer 1.3, which is fairly old
@@ -43,4 +43,4 @@ script:
4343- wget -nv -nc https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso -O ~/virtio-win.iso
4444- export PACKER_LOG=1
4545# See here https://github.com/travis-ci/travis-ci/issues/1839 for background on the sudo sudo command
46- - sudo -E su $USER -c 'packer build --only=${PROVIDER} --var virtio_win_iso=~/virtio-win.iso ${TEMPLATE}.json'
46+ - sudo -E su $USER -c 'packer build --only=${PROVIDER} --var virtio_win_iso=~/virtio-win.iso --var memory_size=6144 --var disk_size=30720 ${TEMPLATE}.json'
You can’t perform that action at this time.
0 commit comments