forked from SHTOOLS/SHTOOLS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (45 loc) · 1.28 KB
/
.travis.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
language: c
matrix:
include:
# Test using python 3.8 on Linux and OSX
- os: linux
env: PYTHON_VERSION=3.8
- os: osx
env: PYTHON_VERSION=3.8
addons:
apt:
packages:
- gcc
- gfortran
install:
# Download and install miniconda
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export OS="MacOSX";
else
export OS="Linux";
fi
- curl -L https://repo.continuum.io/miniconda/Miniconda3-latest-${OS}-x86_64.sh -o miniconda.sh
- bash miniconda.sh -u -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
# Configure conda testing environment
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda update -q conda
- conda create -q -n test-environment python=$PYTHON_VERSION
- conda env update -q -n test-environment -f environment.yml
- conda activate test-environment
# Conda info for debugging
- conda list -n test-environment
- conda info -a
- conda config --show-sources
# Install pyshtools
- pip install --no-deps .
script:
- python examples/notebooks/test_notebooks.py
- export MPLBACKEND=Agg
- make -C examples/python -f Makefile no-timing
- mkdir empty && cd empty
- python -c "import pyshtools"
notifications:
email: false