-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
41 lines (33 loc) · 992 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
32
33
34
35
36
37
38
39
40
41
sudo: false
language: none
rvm:
-
env:
global:
- COMMIT_AUTHOR_EMAIL: "[email protected]"
matrix:
- PYTHON_VERSION=3.5
- PYTHON_VERSION=3.6
- PYTHON_VERSION=3.7
install:
# Install python
- 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 --set auto_update_conda False
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Install virtual enviroment
- conda create -n cp2kparser python=${PYTHON_VERSION}
- source activate cp2kparser
# Install the package
- pip install .[test]
script:
# Run the unitary tests excluding the expensive computations
- pytest -m "not (slow or long)" --cov-config .coveragerc --cov=cp2kparser tests
- coverage xml && coverage report -m
branches:
only:
- master