-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
51 lines (39 loc) · 1.31 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
language: python
# Run jobs on container-based infrastructure, can be overridden per job
# Startup services
services:
- mongodb
matrix:
include:
# Extra includes for OSX since python language is not available by default on OSX
- os: osx
language: generic
env: PYTHON_VER=3.6
- os: linux
python: 3.6
env: PYTHON_VER=3.6
before_install:
# Additional info about the build
- uname -a
- df -h
- ulimit -a
# Install the Python environment
- source devtools/travis-ci/before_install.sh
- python -V
# Deal with encrypted OpenEye license
- if [ "$TRAVIS_SECURE_ENV_VARS" == true ]; then openssl aes-256-cbc -K $encrypted_8ee19439d650_key -iv $encrypted_8ee19439d650_iv -in oe_license.txt.enc -out oe_license.txt -d; fi
- if [ "$TRAVIS_SECURE_ENV_VARS" == false ]; then echo "OpenEye license will not be installed in forks."; fi
install:
# Create test environment for package
- python devtools/scripts/create_conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/test_env.yaml
# Activate the test environment
- conda activate test
# Build and install package
- python setup.py develop --no-deps
script:
- export OE_LICENSE=`pwd`"/oe_license.txt"
- pytest -vs --cov=quanformer quanformer/tests/
notifications:
email: false
after_success:
- codecov