forked from NIWAFisheriesModelling/SPM
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathazure-pipelines-Windows.yml
51 lines (44 loc) · 1.6 KB
/
azure-pipelines-Windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#####################################################################################
# SPM Windows 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
# USAGE:
#> doBuild.sh [type]
# Valid Build Types:
# help - Print this help page
# check - Do a check of the build system
# boost - Build boost libraries (build this before building the release)
# release - Build standalone release executable
# examples - Build the SPM examples
# documentation - Build the user manual
# rlibrary - Build the R library
# unittests - Run the unit tests
# installer - Build a MS-Windows installer package
# deb - Build the Linux .deb installer
# archive - Build a zipped archive of the application.
# clean - Remove any previous debug/release build information
trigger:
- master
# pool:
# vmImage: ubuntu-latest
pool:
vmImage: "windows-latest"
steps:
- script: |
pip install pytz
pip3 install python-dateutil
displayName: "Windows: Installing Python3 build environment"
- script: |
cd BuildSystem
./doBuild.bat boost
displayName: "Windows: Compile BOOST for SPM"
- script: |
cd BuildSystem
./doBuild.bat release
displayName: "Windows: Compile the release version of SPM"
- script: |
cd BuildSystem
./doBuild.bat unittests
displayName: "Windows: Run the unittests for SPM"