-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/ConditioningFix
- Loading branch information
Showing
9 changed files
with
171 additions
and
181 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
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,81 +1,53 @@ | ||
# Don't use language: python; this gives us an unnecessary virtualenv | ||
language: c | ||
|
||
language: python | ||
env: | ||
global: | ||
- ARCHETYPAL_INTEGRATION=True ENERGYPLUS_VERSION=9.2.0 ENERGYPLUS_SHA=921312fa1d ENERGYPLUS_INSTALL_VERSION=9-2-0 MINICONDA_VERSION=latest | ||
|
||
- ARCHETYPAL_INTEGRATION=True ENERGYPLUS_VERSION=9.2.0 ENERGYPLUS_SHA=921312fa1d | ||
ENERGYPLUS_INSTALL_VERSION=9-2-0 MINICONDA_VERSION=latest | ||
addons: | ||
apt: | ||
packages: | ||
- wine | ||
- libgfortran3 | ||
|
||
- wine | ||
- libgfortran3 | ||
jobs: | ||
include: | ||
- os: linux | ||
env: TRAVIS_PYTHON_VERSION=3.7 | ||
- os: osx | ||
env: TRAVIS_PYTHON_VERSION=3.7 | ||
|
||
- name: Python 3.8 on Xenial Linux | ||
python: 3.8 # this works for Linux but is ignored on macOS or Windows | ||
script: py.test --cov=archetypal --verbose tests/ | ||
after_success: | ||
- coverage report -m | ||
- coveralls | ||
- name: Python 3.8 on macOS | ||
os: osx | ||
osx_image: xcode11.2 | ||
language: objective-c | ||
script: py.test --cov=archetypal --verbose tests/ | ||
- name: "Python 3.8 on Windows" | ||
os: windows # Windows 10.0.17134 N/A Build 17134 | ||
language: shell # 'language: python' is an error on Travis CI Windows | ||
script: py.test --cov=archetypal --verbose tests/ | ||
- stage: deploy | ||
script: echo "Deploying to PyPi and GitHub releases ..." | ||
deploy: | ||
- provider: pypi | ||
user: __token__ | ||
password: | ||
secure: cVK75OF2LPDNdPuocxRmuWu4XUgdd81kNo5u/zah7XQf0oKW3TqgVSRhp06XYdQlnCSJZMfe8VJuHoBoCETTDdXFYZMIe6OBlSZeg1xclOtg+Wf4s4zkQ7gMSdzlUKJn9zkINUo7NwRn8Q0GGZCvldJvODzR0xDTcmbeVpeG3WHV8GNosYD7xWNscGBYrF3xVB0euLOHkPyJuFlxzpEhW2XFE7bdMk1/4gwOtfUcCgivpok4dWpgITVEdxRhcBI+ea9NDgpKlJfYHdRX9bBTSFoy8qLEQyvGeNG5cFXW3p+XwsPOKVPnEZv1e2nSYk3Od+sNa+45jte5PNkI43FcIdGaZJadUGck5SUQB9dCWFyLHMQgCtJg4fFLfWBHW5xrfxgOWMK5nqn93qbqOJbLrlw52eNimepfb0FksUpgdkLErkSWGvM5vOSK20Vb4nySjht6PJO88VSUixBd7cdGsioz8X0a69WfVVQhIdYlrjO2N0EGXXi3wh4QTp5VywZue3/cVvC5ainjFq8wuLiBg+LLCObwjj++Qp0OKr9Iw00942HpWhWKEZfpuepMowet8KVCE5SYh5lpKXtZv3+YNrkVy6jfzdZiw4QvMs3VAuQxCdNvILI7h/ktXntwdMT2CIUTKbQrX2uvuSuiwUgo6yRWX+5TkmRVCULpz4qE0lY= | ||
on: | ||
distributions: sdist bdist_wheel | ||
repo: samuelduchesne/archetypal | ||
branch: master | ||
tags: true | ||
before_install: | ||
# download EnergyPlus | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then EXT=dmg; PLATFORM=Darwin; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then EXT=sh; PLATFORM=Linux; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then EXT=exe; PLATFORM=Windows; fi | ||
- ENERGYPLUS_DOWNLOAD_BASE_URL=https://github.com/NREL/EnergyPlus/releases/download/v$ENERGYPLUS_VERSION | ||
- ENERGYPLUS_DOWNLOAD_FILENAME=EnergyPlus-$ENERGYPLUS_VERSION-$ENERGYPLUS_SHA-$PLATFORM-x86_64 | ||
- ENERGYPLUS_DOWNLOAD_URL=$ENERGYPLUS_DOWNLOAD_BASE_URL/$ENERGYPLUS_DOWNLOAD_FILENAME.$EXT | ||
- curl -SLO $ENERGYPLUS_DOWNLOAD_URL | ||
# download extras | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ATTCHBASE=97; ATTCHNUM=8230; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ATTCHBASE=98; ATTCHNUM=8232; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then ATTCHBASE=86; ATTCHNUM=8231; fi | ||
- EXTRAS_DOWNLOAD_URL=http://energyplus.helpserve.com/Knowledgebase/Article/GetAttachment/$ATTCHBASE/$ATTCHNUM | ||
- curl -SL $EXTRAS_DOWNLOAD_URL -o $ATTCHNUM.zip | ||
# install EnergyPlus | ||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then | ||
sudo chmod +x $ENERGYPLUS_DOWNLOAD_FILENAME.$EXT; | ||
echo "y\r" | sudo ./$ENERGYPLUS_DOWNLOAD_FILENAME.$EXT; | ||
sudo tar zxvf $ATTCHNUM.zip -C /usr/local/EnergyPlus-$ENERGYPLUS_INSTALL_VERSION/PreProcess/IDFVersionUpdater; | ||
sudo chmod -R a+rwx /usr/local/EnergyPlus-$ENERGYPLUS_INSTALL_VERSION/PreProcess/IDFVersionUpdater; | ||
sudo chmod -R a+rwx /usr/local/EnergyPlus-$ENERGYPLUS_INSTALL_VERSION/ExampleFiles; fi | ||
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then | ||
curl -SLO https://raw.githubusercontent.com/NREL/EnergyPlus/3cf5e1c8e6944e8a7760b80078c6945073cc8364/cmake/qtifw/install_script.qs; | ||
sudo hdiutil attach $ENERGYPLUS_DOWNLOAD_FILENAME.$EXT; | ||
sudo /Volumes/$ENERGYPLUS_DOWNLOAD_FILENAME/$ENERGYPLUS_DOWNLOAD_FILENAME.app/Contents/MacOS/$ENERGYPLUS_DOWNLOAD_FILENAME --verbose --script install_script.qs; | ||
sudo tar zxvf $ATTCHNUM.zip -C /Applications/EnergyPlus-$ENERGYPLUS_INSTALL_VERSION/PreProcess; | ||
sudo chmod -R a+rwx /Applications/EnergyPlus-$ENERGYPLUS_INSTALL_VERSION/PreProcess/IDFVersionUpdater; | ||
sudo chmod -R a+rwx /Applications/EnergyPlus-$ENERGYPLUS_INSTALL_VERSION/ExampleFiles; fi | ||
- if [ "$TRAVIS_OS_NAME" == "windows" ]; then | ||
sudo chmod +x $ENERGYPLUS_DOWNLOAD_FILENAME.$EXT; | ||
echo "y\r" | sudo ./$ENERGYPLUS_DOWNLOAD_FILENAME.$EXT; fi | ||
# remove install files | ||
- sudo rm $ENERGYPLUS_DOWNLOAD_FILENAME.$EXT | ||
- sudo rm $ATTCHNUM.zip | ||
|
||
# Install python for Linux and macOS | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then MINICONDA_OS=Linux; else MINICONDA_OS=MacOSX; fi | ||
- wget https://repo.anaconda.com/miniconda/Miniconda3-$MINICONDA_VERSION-$MINICONDA_OS-x86_64.sh -O miniconda.sh | ||
- bash miniconda.sh -b -p "$HOME"/miniconda | ||
- source "$HOME"/miniconda/etc/profile.d/conda.sh | ||
|
||
# create and activate environment | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda; | ||
# Useful for debugging any issues with conda | ||
- conda info -a | ||
# new env | ||
- conda env update -q -n test-env python=$TRAVIS_PYTHON_VERSION -f environment.yml | ||
- conda activate test-env | ||
|
||
# Main script | ||
- source install_energyplus.sh | ||
- wget https://raw.githubusercontent.com/trichter/conda4travis/latest/conda4travis.sh -O conda4travis.sh | ||
- source conda4travis.sh | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda | ||
- conda info -a | ||
- conda env update -q -n test-env python=$TRAVIS_PYTHON_VERSION -f environment.yml | ||
- conda activate test-env | ||
- python --version | ||
install: | ||
- pip install --upgrade setuptools | ||
- pip install --upgrade pip | ||
- pip install .[dev] | ||
script: | ||
- py.test --cov=archetypal --verbose tests/ | ||
after_success: | ||
- coverage report -m | ||
- coveralls | ||
- pip install --upgrade pip | ||
- pip install --upgrade setuptools | ||
- pip install .[dev] |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.