-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
43 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[run] | ||
branch = True | ||
source = adcc | ||
omit = | ||
adcc/testdata/* | ||
adcc/lib/* | ||
*/test_*.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
|
||
# Testing | ||
.pytest_cache | ||
.coverage | ||
|
||
# Jupyter | ||
.ipynb_checkpoints/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,52 @@ | ||
language: python | ||
cache: | ||
directories: | ||
- "$HOME/.cache/pip" | ||
|
||
notifications: | ||
email: false | ||
|
||
branches: | ||
only: | ||
# Only build master and version tags | ||
- master | ||
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/ | ||
|
||
os: linux | ||
language: python | ||
python: | ||
- "3.7" | ||
# - "3.6" # (best use this for deployment only) | ||
- "3.5" | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- libopenblas-base | ||
|
||
# Environment variables for linux | ||
env: | ||
- [CC=gcc, CXX=g++] | ||
|
||
install: | ||
- travis_retry pip3 install pyscf # Install an SCF code | ||
- pip3 install pyscf | ||
- pip3 install --verbose -r requirements.txt | ||
script: python3 setup.py test -a '--cov=adcc' | ||
|
||
# These jobs are only run with the first python version | ||
# mentioned in the initial list | ||
jobs: | ||
include: | ||
# | ||
# Checking | ||
- stage: code style | ||
python: 3.7 | ||
addons: | ||
apt: | ||
packages: [] # Do not install openblas here | ||
install: travis_retry pip3 install flake8 | ||
script: flake8 | ||
env: CODE_STYLE="flake8" | ||
# | ||
# Testing | ||
- stage: test | ||
python: 3.7 | ||
env: BUILD_SDIST=true | ||
- python: 3.5 | ||
- os: osx | ||
language: script | ||
os: osx | ||
osx_image: xcode11.1 # macos 10.14 | ||
env: [CC=gcc-9, CXX=g++-9] | ||
|
||
# This is the 'test' build stage | ||
script: CC=$CC CXX=$CXX python3 setup.py test | ||
|
||
stages: | ||
- code style | ||
- test | ||
|
||
after_failure: | ||
- $CC --version | ||
- $CXX --version | ||
|
||
|
||
# TODO Coverage on the python sources | ||
# TODO Deployment to pip on linux (once, as sdist) and macos (each os as bdist_wheel) | ||
|
||
|
||
notifications: | ||
email: false | ||
after_success: | ||
- pip3 install coveralls | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters