Skip to content

Commit

Permalink
Azure: Adds linux matrix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel G. A. Smith committed Nov 14, 2019
1 parent e14a057 commit b569f69
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 13 deletions.
71 changes: 58 additions & 13 deletions .azure-pipelines/azure-pipelines-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,78 @@ jobs:
strategy:
maxParallel: 8
matrix:
gcc_build:
gcc_52:
CXX_COMPILER: 'g++-5'
PYTHON_VER: '3.6'
C_COMPILER: 'gcc-5'
F_COMPILER: 'gfortran'
BUILD_TYPE: 'release'
APT_INSTALL: 'gfortran gcc-5 g++-5'

gcc_latest:
CXX_COMPILER: 'g++'
PYTHON_VER: '3.7'
C_COMPILER: 'gcc'
F_COMPILER: 'gfortran'
BUILD_TYPE: 'release'
APT_INSTALL: 'gfortran'

clang_36:
CXX_COMPILER: 'clang++-3'
PYTHON_VER: '3.7'
C_COMPILER: 'clang-3'
F_COMPILER: 'gfortran'
BUILD_TYPE: 'release'
APT_INSTALL: 'gfortran clang-3'
APT_REPOSITORY: '"deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-3 main"'

clang_latest:
CXX_COMPILER: 'clang++-7'
PYTHON_VER: '3.7'
C_COMPILER: 'clang-7'
F_COMPILER: 'gfortran'
BUILD_TYPE: 'release'
APT_INSTALL: 'gfortran clang-7'
APT_REPOSITORY: '"deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main"'

steps:
- bash: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
[[ "${APT_REPOSITORY}" ]] && echo "Add Repo ${APT_REPOSITORY}" && sudo add-apt-repository ${APT_REPOSITORY}
sudo apt-get update
sudo apt-get install ${APT_INSTALL}
displayName: "Apt-Get Packages"
- bash: |
echo "\nUname:"
uname -a
echo "\nFree:"
free -m
echo "\ndf:"
df -h
echo "\nUlimit:"
ulimit -a
displayName: "Hardware Information"
- bash: |
sudo apt-get update
sudo apt-get install gfortran
displayName: "Install gFortran"
echo "\nNprocs:"
getconf _NPROCESSORS_ONLN
echo "\nCXX Ver:"
${CXX_COMPILER} --version
echo "\nF Ver:"
${F_COMPILER} --version
echo "\nC Ver:"
${C_COMPILER} --version
displayName: "Setup Information"
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
conda config --set always_yes yes
displayName: "Add conda to PATH"
displayName: "Add Conda to PATH"
- bash: |
conda create -q -n p4env python=$PYTHON_VER psi4 --only-deps -c psi4/label/dev
Expand Down Expand Up @@ -66,9 +114,6 @@ jobs:
export CXX=${CXX_COMPILER}
export CC=${C_COMPILER}
export FC=${F_COMPILER}
${CXX_COMPILER} --version
${F_COMPILER} --version
${C_COMPILER} --version
# * can't use conda dist of the more complicated lib pkgs (e.g., CheMPS2, PCMSolver, v2rdm)
# b/c their c++ symbols don't mix with the different Travis compilers. for other
# reasons, pkgs are being compiled less statically, sad for CI.
Expand Down Expand Up @@ -96,7 +141,7 @@ jobs:
- bash: |
cd build
source activate p4env
../.scripts/travis_build.sh
../devtools/scripts/ci_build.sh
displayName: 'Build Psi4'
- bash: |
Expand All @@ -108,8 +153,8 @@ jobs:
- bash: |
cd build
source activate p4env
python ../.scripts/travis_run_test.py
python ../.scripts/travis_print_failing.py
python ../devtools/scripts/ci_run_test.py
python ../devtools/scripts/ci_print_failing.py
displayName: 'CTest Tests'
- bash: |
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b569f69

Please sign in to comment.