| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
language: generic |
| 5 |
sudo: false |
| 6 |
dist: xenial |
| 7 |
|
| 8 |
matrix: |
| 9 |
|
| 10 |
include: |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
- os: osx |
| 15 |
env: |
| 16 |
- MATRIX_EVAL='brew update &> /dev/null && brew install gcc@8' |
| 17 |
- C_COMPILER='gcc-8' |
| 18 |
- PYTHON_VER='3.6' |
| 19 |
- BUILD_TYPE='release' |
| 20 |
|
| 21 |
- os: osx |
| 22 |
osx_image: xcode8 |
| 23 |
env: |
| 24 |
- C_COMPILER='gcc' |
| 25 |
- PYTHON_VER='3.6' |
| 26 |
- BUILD_TYPE='release' |
| 27 |
|
| 28 |
- os: osx |
| 29 |
osx_image: xcode10.1 |
| 30 |
env: |
| 31 |
- C_COMPILER='clang' |
| 32 |
- PYTHON_VER='3.6' |
| 33 |
- BUILD_TYPE='release' |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
- os: linux |
| 38 |
compiler: clang |
| 39 |
addons: |
| 40 |
apt: |
| 41 |
packages: |
| 42 |
- clang-3.6 |
| 43 |
env: |
| 44 |
- C_COMPILER='clang-3.6' |
| 45 |
- PYTHON_VER='3.7' |
| 46 |
- BUILD_TYPE='release' |
| 47 |
|
| 48 |
- os: linux |
| 49 |
compiler: clang |
| 50 |
addons: |
| 51 |
apt: |
| 52 |
packages: |
| 53 |
- clang-6.0 |
| 54 |
env: |
| 55 |
- C_COMPILER='clang-6.0' |
| 56 |
- PYTHON_VER='3.6' |
| 57 |
- BUILD_TYPE='release' |
| 58 |
|
| 59 |
- os: linux |
| 60 |
compiler: gcc |
| 61 |
addons: |
| 62 |
apt: |
| 63 |
packages: |
| 64 |
- gcc-4.9 |
| 65 |
env: |
| 66 |
- C_COMPILER='gcc-4.9' |
| 67 |
- PYTHON_VER='3.7' |
| 68 |
- BUILD_TYPE='release' |
| 69 |
|
| 70 |
- os: linux |
| 71 |
compiler: gcc |
| 72 |
addons: |
| 73 |
apt: |
| 74 |
sources: |
| 75 |
- ubuntu-toolchain-r-test |
| 76 |
packages: |
| 77 |
- gcc-6 |
| 78 |
env: |
| 79 |
- C_COMPILER='gcc-6' |
| 80 |
- PYTHON_VER='3.8' |
| 81 |
- BUILD_TYPE='release' |
| 82 |
|
| 83 |
- os: linux |
| 84 |
compiler: gcc |
| 85 |
addons: |
| 86 |
apt: |
| 87 |
sources: |
| 88 |
- ubuntu-toolchain-r-test |
| 89 |
packages: |
| 90 |
- gcc-7 |
| 91 |
env: |
| 92 |
- C_COMPILER='gcc-7' |
| 93 |
- PYTHON_VER='3.6' |
| 94 |
- BUILD_TYPE='release' |
| 95 |
|
| 96 |
before_install: |
| 97 |
- uname -a |
| 98 |
- df -h |
| 99 |
- ulimit -a |
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
- source devtools/travis-ci/before_install.sh |
| 104 |
- python -V |
| 105 |
|
| 106 |
|
| 107 |
- sh -c '[ -z "$MATRIX_EVAL" ] || eval "${MATRIX_EVAL}"' |
| 108 |
|
| 109 |
install: |
| 110 |
- python devtools/scripts/conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/base.yaml |
| 111 |
- source activate test |
| 112 |
|
| 113 |
- > |
| 114 |
python setup.py install |
| 115 |
-DCMAKE_C_COMPILER=${C_COMPILER} |
| 116 |
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} |
| 117 |
|
| 118 |
before_script: |
| 119 |
- python -V |
| 120 |
- conda list |
| 121 |
- python -c 'import numpy; print(numpy.version.version)' |
| 122 |
|
| 123 |
script: |
| 124 |
- export GAU2GRID_FORCE_C_TEST=1 |
| 125 |
- export SPDIR=`python -c 'from distutils import sysconfig as s; print(s.get_python_lib(plat_specific=True))'` |
| 126 |
- pytest -rws -v --durations=5 --cov=${SPDIR}/gau2grid/ --pyargs gau2grid |
| 127 |
|
| 128 |
notifications: |
| 129 |
email: false |
| 130 |
|
| 131 |
after_success: |
| 132 |
- codecov |