Skip to content

Commit

Permalink
Build Windows 10, 6 GB memory and 30 GB disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik committed Jun 26, 2020
1 parent 9993465 commit c2504ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
strategy:
maxParallel: 4
matrix:
windows_7:
template: windows_7
windows_10:
template: windows_10
steps:
- bash: |
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
Expand All @@ -28,15 +28,12 @@ jobs:
sysctl -a | grep mem
df -h .
displayName: Dump software version
- bash: |
wget -nv -nc https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso -O $(Agent.BuildDirectory)/virtio-win.iso
displayName: Download virtio-win iso
- bash: |
# Set PACKER_LOG to 1 to troubleshoot infrastructure issues
# export PACKER_LOG=1
export PACKER_CACHE_DIR=$(Agent.BuildDirectory)/packer_cache/
# See https://github.com/ansible/ansible/issues/49207
# See https://github.com/ansible/ansible/issues/32499
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
packer build --only=virtualbox-iso --var virtio_win_iso=$(Agent.BuildDirectory)/virtio-win.iso $(template).json
packer build --only=virtualbox-iso --var memory_size=6144 --var disk_size=30720 $(template).json
displayName: Build box
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dist: bionic

jobs:
include:
- env: PROVIDER=qemu TEMPLATE=windows_7 VIRT_GROUP=kvm
- env: PROVIDER=qemu TEMPLATE=windows_10 VIRT_GROUP=kvm

install:
# Install Packer. Travis ships with Packer 1.3, which is fairly old
Expand Down Expand Up @@ -43,4 +43,4 @@ script:
- wget -nv -nc https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso -O ~/virtio-win.iso
- export PACKER_LOG=1
# See here https://github.com/travis-ci/travis-ci/issues/1839 for background on the sudo sudo command
- sudo -E su $USER -c 'packer build --only=${PROVIDER} --var virtio_win_iso=~/virtio-win.iso ${TEMPLATE}.json'
- 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'

0 comments on commit c2504ca

Please sign in to comment.