Skip to content

Commit af8efff

Browse files
authored
feat: create bmi-heat using the bmi abstract base class
Merge pull request #9 from csdms/mcflugen/use-bmi-abstract-base-class
2 parents 19db2e7 + 9b13948 commit af8efff

54 files changed

Lines changed: 2941 additions & 2732 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bmi/api.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.bmi/heat_input.txt.tmpl

Lines changed: 0 additions & 1 deletion
This file was deleted.

.bmi/info.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.bmi/parameters.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.codacy.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
exclude_paths:
2+
- tests/**
3+
- docs/source/conf.py
4+
- setup.py
5+
- versioneer.py
6+
- heat/_version.py

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
heat/_version.py export-subst

.gitmodules

Lines changed: 0 additions & 6 deletions
This file was deleted.

.landscape.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.travis.yml

Lines changed: 55 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,58 @@
1-
language: python
2-
python:
3-
- "2.7"
4-
- "3.5"
5-
- "3.6"
6-
1+
language: generic
72
os:
8-
- linux
9-
3+
- linux
4+
- osx
5+
env:
6+
matrix:
7+
- CONDA_ENV=3.7
8+
- CONDA_ENV=3.6
9+
sudo: false
10+
jobs:
11+
include:
12+
- stage: lint
13+
os: linux
14+
script:
15+
- make lint
16+
- stage: docs
17+
os: linux
18+
install:
19+
- conda env create --file docs/source/environment.yml
20+
- conda activate heat_docs
21+
script:
22+
- sphinx-apidoc --force -o docs heat *tests
23+
- make -C docs clean html
24+
- stage: deploy
25+
if: tag =~ v.*$
26+
script: skip
27+
os: linux
28+
deploy:
29+
on:
30+
all_branches: true
31+
provider: pypi
32+
user: mcflugen
33+
password:
34+
secure: nCLTNxxwRBpvaeNosG+V1sQHeYPDd7zfcBvm5sGE6KVtGOfQtO0cNe1NwMKoVKH9Te9B2RJGs+s6tb4mMqJNuXpTyoFsAr+4gBxO9BSAdjm2wadcqyXexhU99L9oBhfrMAuGYEvV57LE57WaRQfmBnnKH9HE57fWmsx8VO50DEw3mMWKusZt4aFxNgpKwjUGJxtYDEIoOzfOdWAlRicPsZ21s/oMsrYKaYMG8mI8uM5/nVGc2jCb18HXflG9LnsmXlU8P/Jfa0Zu52MRgHuJnyflIDolgjkqPSgu8v/pGhjTCOS88tWSC09mIy1mdkZzJOOiIny+CLkEWxcQbikiVaXwq592+I6YcnW9TAls2hOChFaALYldZd5EopOmlc64DmQXMXCOPLbMM4wiUx63F/zJDZg1i0sMl0ucG5EpNPG18EerdygbvdcLLYKM70jSuqyYBOjk4pAO6Y1EvjffZMBu1XxuO/NvTZyAjoJTTb8xbO4s59Z7KB8sYi+9Gq1DATq1YXZ8k3GoU+KlOGJ73o+D87O95Q5qLWI30HvElKj72eEGMCsOTyvxmNZsEf9yCYbxzP9FEWrWV1uWUwWEV6tAATd7o3bcbp8+DzeglaLX8eOch8MwtxqR2aFvoiMQVTIXkfrn+emuZzhqQcTZSQMA9SztnQ8it4F7WeQWqH8=
35+
before_install:
36+
- |
37+
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
38+
brew remove --force $(brew list)
39+
brew cleanup -s
40+
rm -rf $(brew --cache)
41+
fi
42+
- |
43+
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
44+
curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > $HOME/miniconda.sh
45+
else
46+
curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > $HOME/miniconda.sh
47+
fi
48+
- bash $HOME/miniconda.sh -b -p $HOME/anaconda
49+
- export PATH="$HOME/anaconda/bin:$PATH"
50+
- hash -r
51+
- conda config --set always_yes yes --set changeps1 no
52+
- conda create -n test_env python=$CONDA_ENV
53+
- source activate test_env
1054
install:
11-
- echo "Build on $TRAVIS_OS_NAME for Python $TRAVIS_PYTHON_VERSION"
12-
- bash .travis/install_python.sh
13-
- export PATH="$HOME/miniconda/bin:$PATH"
14-
- source activate test-env
15-
- pip install coveralls
16-
- conda info
17-
- conda list
18-
- python setup.py install
19-
55+
- pip install . -r requirements.txt
2056
script:
21-
- nosetests --with-doctest --with-coverage --cover-package=heat
22-
23-
after_success:
24-
coveralls
57+
- pytest --cov=heat --cov-report=xml:$(pwd)/coverage.xml -vvv
58+
after_success: coveralls

.travis/install_python.sh

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)