| 1 |
trigger: |
| 2 |
- master |
| 3 |
|
| 4 |
jobs: |
| 5 |
- job: build_on_ubuntu_latest |
| 6 |
strategy: |
| 7 |
maxParallel: 2 |
| 8 |
matrix: |
| 9 |
gcc_gtk3_lua52: |
| 10 |
publish_prefix: gcc-gtk3-lua52 |
| 11 |
lua_package: liblua5.2-dev |
| 12 |
gcc_gtk3_lua53: |
| 13 |
publish_prefix: gcc-gtk3-lua53 |
| 14 |
lua_package: liblua5.3-dev |
| 15 |
pool: |
| 16 |
vmImage: ubuntu-latest |
| 17 |
steps: |
| 18 |
- script: > |
| 19 |
sudo apt-get update && sudo apt-get install |
| 20 |
git ragel g++ gcc gettext libgtk-3-dev $(lua_package) libexpat1-dev |
| 21 |
libboost-filesystem-dev libboost-system-dev libboost-test-dev |
| 22 |
- task: CMake@1 |
| 23 |
inputs: |
| 24 |
workingDirectory: 'build' |
| 25 |
cmakeArgs: '-G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory)/ ..' |
| 26 |
- script: | |
| 27 |
cmake --build . --config Release |
| 28 |
workingDirectory: 'build' |
| 29 |
- script: | |
| 30 |
./build/tests --log_format=JUNIT --report_format=HRF -k tests-log.xml -e tests-report.txt --no_result_code |
| 31 |
workingDirectory: '' |
| 32 |
- task: PublishTestResults@2 |
| 33 |
inputs: |
| 34 |
testResultsFormat: 'JUnit' |
| 35 |
testResultsFiles: 'tests-*.xml' |
| 36 |
- script: | |
| 37 |
cmake --build . --config Release --target install |
| 38 |
workingDirectory: 'build' |
| 39 |
- task: PublishBuildArtifacts@1 |
| 40 |
inputs: |
| 41 |
artifactName: $(publish_prefix)-ubuntu-latest |
| 42 |
pathToPublish: '$(Build.ArtifactStagingDirectory)' |
| 43 |
|