forked from visit-dav/visit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
157 lines (142 loc) · 5.54 KB
/
azure-pipelines.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
# Project developers. See the top-level LICENSE file for dates and other
# details. No copyright assignment is required to contribute to VisIt.
###############################################################################
# VisIt Azure CI Checks
###############################################################################
# Azure Commands Ref:
# https://aka.ms/yaml
#####
# TO USE A NEW CONTAINER, UPDATE TAG NAME HERE AS PART OF YOUR PR!
#####
variables:
container_tag: visitdav/visit-ci-develop:2021-02-18-sha9bfd19
# only build merge target pr to develop
trigger: none
pr:
branches:
include:
- develop
# add fast fail checks here
stages:
- stage: Quick
jobs:
- job: Fast_Check
pool:
vmImage: 'ubuntu-18.04'
steps:
- checkout: self
clean: boolean
submodules: recursive
- script: |
#######################################
# run our quick check
#######################################
echo "OK"
# NOTE FOR AZURE:
# only return code of the command is checked!
displayName: 'Example Fast Check'
# main checks build using docker containers that
# include tpls built with build_visit
- stage: Main
jobs:
- job: Main_Build
pool:
vmImage: 'ubuntu-18.04'
timeoutInMinutes: 0
container: ${{ variables.container_tag }}
variables:
TPLS_PATH: /masonry/build-mb-develop-ci-smoke/thirdparty_shared/third_party/
steps:
- checkout: self
clean: boolean
submodules: recursive
- script: |
#################################
# configure
#################################
# setup path to cmake
export CMAKE_BIN_DIR=`ls -d ${TPLS_PATH}/cmake/*/ci/bin/`
export PATH=$PATH:$CMAKE_BIN_DIR
# make dir for build
mkdir build
cd build
# configure with cmake
cmake -DVISIT_CONFIG_SITE:PATH="/visit-ci-cfg.cmake" ../src
displayName: 'Configure with CMake'
- script: |
#################################
# build
#################################
# build
cd build
make -j 4
displayName: 'Build'
- script: |
#################################
# fetch subset of test data (silo + blueprint)
#################################
cd data
git lfs pull --include silo_amr_test_data.7z
git lfs pull --include silo_ghost_test_data.7z
git lfs pull --include silo_hdf5_test_data.7z
git lfs pull --include silo_pdb_test_data.7z
git lfs pull --include silo_sph_test_data.7z
git lfs pull --include blueprint_v0.3.1_test_data.7z
git lfs pull --include blueprint_v0.3.1_mfem_test_data.7z
git lfs pull --include blueprint_v0.7.0_venn_test_data.7z
cd ../
git lfs pull --include test/baseline/databases/silo
git lfs pull --include test/baseline/databases/blueprint
cd build/testdata/
export P7ZIP_BIN_DIR=`ls -d ${TPLS_PATH}/p7zip/*/ci/bin/`
export PATH=$PATH:$P7ZIP_BIN_DIR
7za x -y ../../data/silo_amr_test_data.7z
7za x -y ../../data/silo_ghost_test_data.7z
7za x -y ../../data/silo_hdf5_test_data.7z
7za x -y ../../data/silo_pdb_test_data.7z
7za x -y ../../data/silo_sph_test_data.7z
7za x -y ../../data/blueprint_v0.3.1_test_data.7z
7za x -y ../../data/blueprint_v0.3.1_mfem_test_data.7z
7za x -y ../../data/blueprint_v0.7.0_venn_test_data.7z
displayName: 'Prep Test Data'
- script: |
#################################
# run tests
#################################
# run test suite
cd build/test
# find vtk, ospray and tbb
export VTK_LIB_DIR=`ls -d ${TPLS_PATH}/vtk/*/ci/lib/`
export OSPRAY_LIB_DIR=`ls -d ${TPLS_PATH}/ospray/*/ci/lib/`
# note: tbb has extra paths under lib
export TBB_LIB_DIR=`ls -d ${TPLS_PATH}/tbb/*/ci/lib/intel64/gcc4.7/`
# add to ld_lib path (rpaths are missing?)
export LD_LIBRARY_PATH=${VTK_LIB_DIR}:${OSPRAY_LIB_DIR}:${TBB_LIB_DIR}
# run test suite on silo + blueprint tests
export TESTS=../../src/test/tests/databases/silo.py
export TESTS="${TESTS} ../../src/test/tests/databases/blueprint.py"
export TESTS="${TESTS} ../../src/test/tests/hybrid/ddf.py"
# also run a few of our unit tests
export TESTS="${TESTS} ../../src/test/tests/unit/assert_simple.py"
export TESTS="${TESTS} ../../src/test/tests/unit/default_methods.py"
export TESTS="${TESTS} ../../src/test/tests/unit/convert2to3.py"
./run_visit_test_suite.sh -v ${TESTS}
displayName: 'Run Tests'
- task: CopyFiles@2
inputs:
contents: 'build/test/output/html/**'
targetFolder: $(Build.ArtifactStagingDirectory)
condition: always()
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: VisIt_Test_Outputs
condition: always()
# - script: |
# #################################
# # install
# #################################
# cd build
# make install
# displayName: 'Install'