1image: Ubuntu1804
2
3build: off
4test: off
5
6init:
7  - sudo apt update
8  - sudo apt -y install git cmake gcc-mingw-w64 pkg-config libgtk2.0-dev xvfb
9
10install:
11  - Xvfb :0 -screen 0 1024x768x16 &
12  - sudo apt -y install wine64
13  - appveyor DownloadFile http://files.jrsoftware.org/is/5/innosetup-5.6.1.exe innosetup-5.6.1.exe
14  - DISPLAY=:0.0 wine innosetup-5.6.1.exe \/VERYSILENT \/SUPPRESSMSGBOXES
15
16  - appveyor DownloadFile https://github.com/analogdevicesinc/iio-osc-mingw/releases/latest/download/iio-osc-i686-build-deps.tar.xz
17  - appveyor DownloadFile https://github.com/analogdevicesinc/iio-osc-mingw/releases/latest/download/iio-osc-x86_64-build-deps.tar.xz
18  - tar -xf iio-osc-i686-build-deps.tar.xz
19  - tar -xf iio-osc-x86_64-build-deps.tar.xz
20
21build_script:
22  - CI/appveyor/build.sh i686
23  - CI/appveyor/build.sh x86_64
24
25after_build:
26  - export OSC_BUILD_VER=`git describe --tags --always HEAD`
27  - sed "s/UNSET_VERSION/${OSC_BUILD_VER}/" osc.iss > updated-osc.iss
28
29  - wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Inno\ Setup\ 5/ISCC.exe updated-osc.iss
30  - appveyor PushArtifact adi-osc-setup.exe
31
32