-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (24 loc) · 963 Bytes
/
.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
language: python
matrix:
include:
- python: 3.8
before_install:
# Install the latest version of Miniconda
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda update --yes conda
install:
- conda install -y conda-build conda-verify
- conda config --append channels conda-forge
- conda config --append channels geo-down-under
# Build the conda recipe for this package
- conda build -q --no-test meta.yaml --python=$TRAVIS_PYTHON_VERSION --output-folder bld-dir --numpy 1.19
# Add the built package as a channel with highest priority
- conda config --add channels "file://`pwd`/bld-dir"
# Create and activate the test environment
- conda create -y -q -n test-environment python=$TRAVIS_PYTHON_VERSION pylag
- source activate test-environment
script:
- nose2 -C -s pylag/tests