-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.travis.yml
executable file
·59 lines (46 loc) · 1.44 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
55
56
57
58
59
notifications:
email:
on_success: change # default: change
on_failure: change # default: always
language: python
dist: "bionic"
sudo: true
python:
- "3.6"
- "3.7"
- "3.8"
virtualenv:
system_site_packages: false
# command to install dependencies
services:
- xvfb
# Setup anaconda
before_install:
# Here we just install Miniconda, which you shouldn't have to change.
- sudo apt-get install tesseract-ocr
- wget http://repo.continuum.io/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 init bash
- source ~/.bashrc
- conda config --set always_yes yes --set changeps1 no
- conda config --append channels phygbu
- conda config --append channels conda-forge
- conda config --set channel_priority strict
- conda update -q conda
- conda info -a
install:
# We do this conditionally because it saves us some downloading if the
# version is the same.
# Useful for debugging any issues with conda
# Replace dep1 dep2 ... with your dependencies
- echo " - python=$TRAVIS_PYTHON_VERSION" >> tests/test-env.yml
- conda env create -f tests/test-env.yml
- conda activate test-environment
- pip install coveralls
- pip install --no-deps .
# command to run tests
script: pytest -n 2 --cov-report= --cov=Stoner
after_success:
coveralls