forked from GEOS-DEV/GEOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml.old
102 lines (98 loc) · 4.14 KB
/
azure-pipelines.yml.old
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
variables:
OMP_NUM_THREADS: 3
DO_BUILD: 'yes'
DO_TEST: 'yes'
CMAKE_EXTRA_FLAGS: "-DENABLE_WARNINGS=On -DENABLE_TBB=On -DBLT_CXX_STD=c++14 -DENABLE_WARNINGS_AS_ERRORS=ON"
strategy:
matrix:
macos:
ImageName: 'macos-10.13'
CC: clang
CXX: clang++
FC: gfortran
MPICC: mpicc
MPICXX: mpicxx
MPIFC: mpifort
MPIEXEC: /usr/local/bin/mpirun
CMAKE_BUILD_TYPE: Release
TEST_TARGET: 'Linux'
linux_clang6_release:
ImageName: 'ubuntu-16.04'
IMG: clang6-LC-toss3
GEOSX_TPL_DIR: /home/geosx/thirdPartyLibs/install-default-release
CMAKE_BUILD_TYPE: Release
TEST_TARGET: 'clang6-LC-toss3 C++'
linux_clang7_release:
ImageName: 'ubuntu-16.04'
IMG: clang7-LC-toss3
GEOSX_TPL_DIR: /home/geosx/thirdPartyLibs/install-default-release
CMAKE_BUILD_TYPE: Release
TEST_TARGET: 'clang7-LC-toss3 C++'
linux_clang7_debug:
ImageName: 'ubuntu-16.04'
IMG: clang7-LC-toss3
GEOSX_TPL_DIR: /home/geosx/thirdPartyLibs/install-default-release
CMAKE_BUILD_TYPE: Debug
TEST_TARGET: 'clang7-LC-toss3-debug C++'
linux_gcc7_release:
ImageName: 'ubuntu-16.04'
IMG: gcc7-ubuntu18
GEOSX_TPL_DIR: /home/geosx/thirdPartyLibs/install-default-release
CMAKE_BUILD_TYPE: Release
TEST_TARGET: 'gcc7-ubuntu18 C++'
linux_gcc8_release:
ImageName: 'ubuntu-16.04'
IMG: gcc8-ubuntu18
GEOSX_TPL_DIR: /home/geosx/thirdPartyLibs/install-default-release
CMAKE_BUILD_TYPE: Release
TEST_TARGET: 'gcc8-ubuntu18 C++'
linux_gcc8_debug:
ImageName: 'ubuntu-16.04'
IMG: gcc8-ubuntu18
GEOSX_TPL_DIR: /home/geosx/thirdPartyLibs/install-default-release
CMAKE_BUILD_TYPE: Debug
TEST_TARGET: 'gcc8-ubuntu18-debug C++'
pool:
vmImage: $(ImageName)
steps:
- checkout: self
persistCredentials: true
submodules: false
- script: |
# While GEOSX is private, PAT required to access github (add following after "git"):
# -c http.extraheader="AUTHORIZATION: basic <PAT>"
git submodule update --init --recursive src/coreComponents/cxx-utilities
git submodule update --init --recursive src/cmake/blt
git submodule update --init --recursive src/externalComponents/PVTPackage
git submodule update --init --recursive src/externalComponents/PAMELA
git submodule update --init --recursive src/coreComponents/fileIO/coupling/hdf5_interface
displayName: 'Updating submodules'
- script: docker run --rm --user='root' -v $(Build.SourcesDirectory):/home/geosx/geosx_repo geosx/compiler:$IMG chown -R geosx /home/geosx;
condition: eq( variables['Agent.OS'], 'Linux')
displayName: '$(TEST_TARGET) TPLs'
- script: |
brew install openmpi;
ln -s /usr/local/Cellar/open-mpi/4.0.1_2 /usr/local/Cellar/open-mpi/4.0.1_1;
cd ..;
mkdir thirdPartyLibs;
cd thirdPartyLibs;
wget https://www.dropbox.com/s/3mlzvaw5g6cm4va/tpl-osx-clang10-20190625.tar.gz;
tar -xf tpl-osx-clang10-20190625.tar.gz;
cd install-darwin-clang-release/chai/include/chai;
wget https://www.dropbox.com/s/mdetuztgiovgpux/ManagedArray.hpp;
mv ManagedArray.hpp.1 ManagedArray.hpp;
sudo mkdir -p /Users/rrsettgast/Codes/geosx/;
sudo ln -s /Users/vsts/agent/2.155.1/work/1/thirdPartyLibs /Users/rrsettgast/Codes/geosx/thirdPartyLibs;
condition: eq( variables['Agent.OS'], 'Darwin')
displayName: 'xcode10.2 C++ TPLs'
- script: |
python $(Build.SourcesDirectory)/scripts/config-build.py -hc $(Build.SourcesDirectory)/host-configs/darwin-clang.cmake -DBLT_MPI_COMMAND_APPEND:STRING="--oversubscribe";
cd build-darwin-clang-debug;
make -j2 VERBOSE=1;
ctest -V;
condition: eq (variables['Agent.OS'], 'Darwin')
displayName: 'xcode10.2 C++ Build and Test'
- script: |
docker run --rm -v $(Build.SourcesDirectory):/home/geosx/geosx_repo -e DO_BUILD -e DO_TEST -e CMAKE_EXTRA_FLAGS -e PATHMOD -e GEOSX_TPL_DIR -e CMAKE_BUILD_TYPE geosx/compiler:$IMG /home/geosx/geosx_repo/scripts/travis_build_and_test.sh;
condition: ne (variables['Agent.OS'], 'Darwin')
displayName: '$(TEST_TARGET) build and test'