forked from ioos/gliderpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 1.26 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
language: minimal
sudo: false
matrix:
fast_finish: true
include:
- name: "python-3.7"
env: PY=3.7
- name: "python-3.8"
env: PY=3.8
- name: "tarball"
env: PY=3
- name: "docs"
env: PY=3
before_install:
# Install miniconda and create TEST env.
- |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
conda update --quiet conda
conda config --add channels conda-forge --force
conda config --set channel_priority strict
conda config --set safety_checks disabled
conda create --name TEST python=$PY --file requirements.txt --file requirements-dev.txt
source activate TEST
conda info --all
install:
- pip install -e . --no-deps --force-reinstall
script:
- if [[ $TRAVIS_JOB_NAME == python-* ]]; then
cp -r tests/ /tmp ;
pushd /tmp && pytest -n 2 -rxs --cov=gliderpy tests && popd ;
fi
- |
if [[ $TRAVIS_JOB_NAME == 'tarball' ]]; then
python -m pep517.build --source --binary . --out-dir dist && \
check-manifest --verbose && \
twine check dist/*
fi