-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.travis.yml
47 lines (35 loc) · 1.02 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
language: python
# Run jobs on container-based infrastructure, can be overridden per job
dist: xenial
matrix:
include:
- os: linux
language: generic # No need to set Python version since its conda
env: PYTHON_VER=3.6
- os: linux
language: generic
env: PYTHON_VER=3.7
before_install:
# Additional info about the build
- uname -a
- df -h
- ulimit -a
# Install the Python environemt
- source devtools/travis-ci/before_install.sh
- python -V
install:
# Create test environment for package
- python devtools/scripts/create_conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/psi.yaml
# Activate the test environment
- conda activate test
# Build and install package
- bash devtools/travis-ci/install-cctools.sh
- python setup.py develop --no-deps
# Print versions
- python -c "import geometric; print(geometric.__version__)"
script:
- travis_wait 100 pytest -v --cov=torsiondrive torsiondrive/tests/
notifications:
email: false
after_success:
- codecov