-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
51 lines (43 loc) · 1.64 KB
/
appveyor.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
# Written by referring to OpenSim's appveyor.yml.
shallow_clone: true
environment:
matrix:
- OSIMDIR: OpenSim 3.1
NICKN: 3.1_64bit_vs10
VSVER: Visual Studio 10 Win64
- OSIMDIR: OpenSim 3.2-64bit-VS10
NICKN: 3.2_64bit_vs10
VSVER: Visual Studio 10 Win64
- OSIMDIR: OpenSim 3.2-64bit-VS12
NICKN: 3.2_64bit_vs12
VSVER: Visual Studio 12 Win64
- OSIMDIR: OpenSim 3.2-32bit-VS10
NICKN: 3.2_32bit_vs10
VSVER: Visual Studio 10
- OSIMDIR: OpenSim 3.2-32bit-VS12
NICKN: 3.2_32bit_vs12
VSVER: Visual Studio 12
init:
- SET PATH=%APPVEYOR_BUILD_FOLDER%/%OSIMDIR%/bin;%PATH%
build_script:
- mkdir "%APPVEYOR_BUILD_FOLDER%/build"
- cd "%APPVEYOR_BUILD_FOLDER%/build"
# Configure.
- dir ..
- cmake .. -G"%VSVER%" -DOPENSIM_INSTALL_DIR="%APPVEYOR_BUILD_FOLDER%/%OSIMDIR%" -DCMAKE_INSTALL_PREFIX="%APPVEYOR_BUILD_FOLDER%/install"
# Compile.
#- MSBuild OpenSimMuscleMetabolicsProbes.sln /target:ALL_BUILD /p:Configuration=Release /maxcpucount:4 /verbosity:quiet
- cmake --build . --config RelWithDebInfo --target ALL_BUILD -- /verbosity:quiet
test_script:
- cd "%APPVEYOR_BUILD_FOLDER%/build"
- ctest -V
after_test:
- cd "%APPVEYOR_BUILD_FOLDER%/build"
# Install.
- cmake --build . --config RelWithDebInfo --target INSTALL -- /verbosity:quiet
# Run the analysis.
- cd "%APPVEYOR_BUILD_FOLDER%/install/examples"
- analyze -S subject01_Setup_Analyze_Metabolics.xml -L ../osimMuscleMetabolicsProbes
# Create zip of the installation.
- 7z a opensim-metabolicsprobes_v%NICKN%.zip %APPVEYOR_BUILD_FOLDER%/install/
- appveyor PushArtifact opensim-metabolicsprobes_v%NICKN%.zip