-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
54 lines (46 loc) · 1.37 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: generic
notifications:
email: false
env:
global:
- CC=gcc-7
- CXX=g++-7
- PKG_NAME=cmlreaders
- PY_IGNORE_IMPORTMISMATCH=1
matrix:
# For some reason, Anaconda 4.6.12 fails to install on Python 3.5. Commenting 3.5 out until
# we get the environment to build on Python 3.5 again.
#- PYTHON_VERSION=3.5
# - PYTHON_VERSION=3.6
# - PYTHON_VERSION=3.7
# - PYTHON_VERSION=3.8
#- PYTHON_VERSION=3.9
#- PYTHON_VERSION=3.10
- PYTHON_VERSION=3.11
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda install -q python=$PYTHON_VERSION conda-build anaconda-client
install:
- conda install -c pennmem -c conda-forge numpy pandas classiflib ptsa
# - conda install "traits<=5.2.0"
- pip install -r requirements.txt
- invoke build --no-convert --no-use-local-build-dir
- ls $HOME/miniconda/conda-bld/linux-64
- conda install --use-local $PKG_NAME
script:
- flake8 --ignore W504,W503,E203 --max-line-length 100
- invoke test
after_success:
- codecov
deploy:
- provider: script
script: maint/deploy.sh
on:
tags: true
skip_cleanup: true