Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate OE license on travis #1

Merged
merged 6 commits into from
Jan 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 29 additions & 41 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,37 @@
language: python

# Run jobs on container-based infrastructure, can be overridden per job

dist: xenial
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: osx
language: generic
env: PYTHON_VER=3.7

- os: linux
python: 3.6
env: PYTHON_VER=3.6
- os: linux
python: 3.7
env: PYTHON_VER=3.7

- os: osx
language: generic
env: PYTHON_VER=3.6
- os: osx
language: generic
env: PYTHON_VER=3.7
- os: linux
python: 3.6
env: PYTHON_VER=3.6
- os: linux
python: 3.7
env: PYTHON_VER=3.7
env:
global:
- OE_LICENSE="$HOME/oe_license.txt"
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

- openssl aes-256-cbc -K $encrypted_c469bd55e683_key -iv $encrypted_c469bd55e683_iv
-in oe_license.txt.enc -out $OE_LICENSE -d
- uname -a
- df -h
- ulimit -a
- 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/test_env.yaml
# Activate the test environment
- conda activate test
# Build and install package
- python setup.py develop --no-deps


- python devtools/scripts/create_conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/test_env.yaml
- conda activate test
- python setup.py develop --no-deps
script:
- pytest -v --cov=propertyestimator propertyestimator/tests/

- pytest -v --cov=propertyestimator propertyestimator/tests/
notifications:
email: false

email: false
after_success:
- codecov
- codecov
2 changes: 2 additions & 0 deletions devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ dependencies:
# Pip-only installs
- pip:
- codecov
- --extra-index-url https://pypi.anaconda.org/OpenEye/simple
- OpenEye-toolkits
Binary file added oe_license.txt.enc
Binary file not shown.
5 changes: 5 additions & 0 deletions propertyestimator/tests/test_openeye.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def test_openeye_is_available():
import importlib
oechem = importlib.import_module('openeye', 'oechem')
if not oechem.OEChemIsLicensed():
raise ImportError