Add jobs for all the supported platforms

This commit is contained in:
Luis Ángel San Martín 2019-08-14 22:01:07 +02:00
parent 5d31bdeac5
commit 6f02d4e927

View File

@ -1,19 +1,49 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
# aka.ms/yaml
# TODO: reuse steps
trigger:
- master
- develop
pool:
vmImage: 'ubuntu-latest'
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: |
sudo add-apt-repository 'deb http://download.opensuse.org/repositories/home:/selmf/xUbuntu_16.04/ /'
sudo add-apt-repository ppa:kubuntu-ppa/backports
sudo apt-get update
sudo apt-get install -y --allow-unauthenticated qt-default qt5-qmake \
qtbase5-dev qtmultimedia5-dev libpoppler-qt5-dev qtscript5-dev \
libqt5opengl5-dev libglu1-mesa-dev libunarr-dev qtdeclarative5-dev
displayName: 'Install dependencies'
- script: |
qmake CONFIG+="7zip"
make
displayName: 'Build'
- job: MacOS
pool:
vmImage: 'macOS-10.14'
steps:
- script: |
brew install qt
brew link qt --force
displayName: 'Install dependencies'
- script: |
qmake CONFIG+="7zip"
make
displayName: 'Build'
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- script: |
pip install aqtinstall
mkdir C:\Qt
aqt install -O c:\Qt 5.12.4 windows desktop win64_msvc2017_64
displayName: 'Install dependencies'
- script: |
qmake CONFIG+="7zip"
make
displayName: 'Build'