-
Notifications
You must be signed in to change notification settings - Fork 11
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
40 changed files
with
2,394 additions
and
2,642 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,36 +1,78 @@ | ||
os: linux | ||
language: python | ||
virtualenv: | ||
system_site_packages: true | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- xvfb | ||
- python-gi | ||
- python-gi-cairo | ||
- python3-gi | ||
- python3-gi-cairo | ||
- gir1.2-gtk-3.0 | ||
|
||
install: | ||
- pip install --upgrade pip | ||
- pip install -r requirements.txt | ||
|
||
matrix: | ||
jobs: | ||
include: | ||
- name: "Python 2 Unit Test" | ||
python: 2.7 | ||
env: TEST_COMMAND=test | ||
- name: "Python 3 Unit Tests" | ||
python: 3.5 | ||
env: TEST_COMMAND=test | ||
- name: "Python 3 Code Quality" | ||
python: 3.5 | ||
env: TEST_COMMAND=flake8 | ||
|
||
script: | ||
- xvfb-run coverage run setup.py $TEST_COMMAND | ||
- os: linux | ||
name: Ubuntu 18.04 Tests | ||
env: BUILD=UBUNTU18 | ||
dist: bionic | ||
language: python | ||
python: 3.6 | ||
before_script: pip3 install -r requirements.txt | ||
script: nosetests | ||
before_deploy: ./build.sh Ubuntu18 | ||
- os: linux | ||
name: Ubuntu 20.04 Tests | ||
env: BUILD=UBUNTU20 | ||
dist: focal | ||
language: python | ||
python: 3.6 | ||
before_script: pip3 install -r requirements.txt | ||
script: nosetests | ||
before_deploy: ./build.sh Ubuntu20 | ||
after_success: coveralls | ||
- os: osx | ||
name: Mac 10.15 Tests | ||
env: BUILD=MAC | ||
osx_image: xcode11.4 | ||
before_script: pip3 install --user -r requirements.txt | ||
script: "/Users/travis/Library/Python/3.7/bin/nosetests" | ||
before_deploy: ./build.sh Mac | ||
- os: windows | ||
name: Windows Tests | ||
env: BUILD=WINDOWS PATH=/c/Python36:/c/Python36/Scripts:$PATH | ||
language: cpp | ||
before_script: | ||
- choco install 7zip | ||
- choco install python --version 3.6.8 | ||
- pip3 install -r requirements.txt | ||
script: nosetests | ||
before_deploy: ./build.sh Windows | ||
- os: linux | ||
name: Flake8 | ||
env: BUILD=FLAKE8 | ||
dist: bionic | ||
language: python | ||
python: 3.6 | ||
before_script: pip3 install -r requirements.txt | ||
script: flake8 epregressions | ||
- os: linux | ||
name: PyPi Packaging | ||
dist: focal | ||
env: BUILD=PYPI | ||
language: python | ||
python: 3.6 | ||
before_script: pip3 install -r requirements.txt | ||
script: python3 setup.py bdist_wheel sdist | ||
|
||
after_success: | ||
- test $TEST_COMMAND = "test" && coveralls | ||
deploy: | ||
- provider: releases | ||
api_key: | ||
secure: dtm5qvOwBnYI37k0X5bQ1tJweOs5UTV65vv1vGa+TaU8eAE1KHmTIhNedZg7aRWYSpLRz/hdhGPjVBxid7VIvtIqFI4HX6wJ9Mf6aFL6uoFM5mUhtBrBo7TkcYG+oSQ5eftCDVO0449iKi0mzXgfl5szNXns1/VthK15+MGBQr12hNu+l0aWG3gWyweUnpJ3x4nORXU01v3yLTl+4J/UNOBzJvziXNub/7idF+v//hsoesLJuwKUjUBRmCackTFEiO/t9Atr4fMbI9Fksd+8TBaYplwz6ZwqKKtI1itrAe9af2PRTic7ZWmLI36U5KrGkH6yERFY2MAOgwHmirlkKfPknW1zLxaBMtgimdMhM9iVhNShC6+D1OpwFxiQEleQvS7ASFGLHeBuK2YK5QTH/4e9j1hGcaIrBg/J3JCPr9EYcqS2shUu0DxOyfQzI/M5vWDcY/suwZb0hijqXYDg9T+qIxdmlzV7RFwj6cSsVKvpLJSoAgZmoEAruze+iCp4jKdP/mEyvslbcLYt4MeGv8BydcX6jaLTgqMFYg3cZuWKATT6KVc6DaaL+Ptc5kIhw7GHMfkFyVe9lRAKiDDvvV1VIrnSyYcJ1m+i5XdSe5/IeCMuj0aTx1iTa0gi4CoKLIdWYvAbbGGjj9s8VT7nxH4c4WPosKabPyM1pt7MDPk= | ||
file_glob: true | ||
file: deploy/* | ||
skip_cleanup: true | ||
overwrite: true | ||
on: | ||
tags: true | ||
repo: NREL/EnergyPlusRegressionTool | ||
condition: $BUILD != PYPI | ||
- provider: pypi | ||
skip_cleanup: true | ||
skip_upload_docs: true | ||
username: Myoldmopar | ||
password: | ||
secure: "OuBZMCgJ3LZerXhE/Zvp3Qy6adpkyRo0GKR+ZSt28ggna3T3Ejd2y+GNdeJxqx05UCPfSJVuH4bqs0ILDXf8TzwyAWCRhQvZNZOR/vhWMha/zvx5czGrqUEgm+YdmxUsCTIUBIoFdn5He1C4e5qQ49Epn5o0EK6OrBfYoTu/hT5sP054WByX3u2VPL31gtQ9wyOOG85bBY2obl7tA0M/rdP2Xg28PyxhdSQLbfIz28r7ud/8+jfuFoDD2MWYrr97lPD4vVuf7tUWfSnRf5sVS+i0brOQI0g48nTuKd7WLYEqRj0jEDxAAaBwt3ZS90EH4Y7164TIjT2GwfmTB65Ev6QNeKlLX9JjyVSjOdjglKXFrcDPXqgvVxCJ36ds37q2iUaqIqIKFePamWp5cfHV/7VT4hEasc28G9HM6KXtLIjm+85fRn+v2/5+R7l4Pv6En+b9BkrTKu5GU/DvV7/BMMhS/4I5CBar1B7oeFQh6XmWtSWv3oglwb5nGzp1j9HHy0Uhda0FXLlHEOdvToeabpHnCoOMLK4Un+QPBwjrve+DOVUkD1Iy9a4CpE4cV3v5C+JYiKYOPRtt08CVAot7/gTZUAzARJZDFOd4IjvT7fhxU+OhDpxzh3IA5iXijqaqm/4geWzzS3cJrnASUuarE9TpysispFRQW7GEVE20GXw=" | ||
on: | ||
tags: true | ||
distributions: sdist bdist_wheel | ||
repo: NREL/EnergyPlusRegressionTool | ||
condition: $BUILD = PYPI |
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 @@ | ||
recursive-include epregressions *.config |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash -e | ||
|
||
BUILD_CONFIG=$1 | ||
|
||
VERSION_STRING=$(grep VERSION epregressions/__init__.py | cut -d= -f2 | xargs) | ||
|
||
rm -rf deploy | ||
|
||
case ${BUILD_CONFIG} in | ||
|
||
Ubuntu20) | ||
python3 setup.py sdist bdist_wheel --dist-dir dist_pypi | ||
pyinstaller --onefile --add-data "epregressions/diffs/math_diff.config:epregressions/diffs" epregressions/runner.py | ||
mkdir deploy | ||
tar -zcvf deploy/EnergyPlusRegressionTool-"${VERSION_STRING}"-Ubuntu20.04.tar.gz -C dist runner | ||
;; | ||
|
||
Ubuntu18) | ||
python3 setup.py sdist bdist_wheel --dist-dir dist_pypi | ||
pyinstaller --onefile --add-data "epregressions/diffs/math_diff.config:epregressions/diffs" epregressions/runner.py | ||
mkdir deploy | ||
tar -zcvf deploy/EnergyPlusRegressionTool-"${VERSION_STRING}"-Ubuntu18.04.tar.gz -C dist runner | ||
;; | ||
|
||
Mac) | ||
python3 setup.py sdist bdist_wheel --dist-dir dist_pypi | ||
/Users/travis/Library/Python/3.7/bin/pyinstaller --onefile --add-data "epregressions/diffs/math_diff.config:epregressions/diffs" epregressions/runner.py | ||
mkdir deploy | ||
tar -zcvf deploy/EnergyPlusRegressionTool-"${VERSION_STRING}"-Mac.tar.gz -C dist runner | ||
;; | ||
|
||
Windows) | ||
python.exe setup.py sdist bdist_wheel --dist-dir dist_pypi | ||
pyinstaller --onefile --add-data "epregressions/diffs/math_diff.config;epregressions/diffs" epregressions/runner.py | ||
mkdir deploy | ||
/C/Program\ Files/7-zip/7z.exe a deploy/EnergyPlusRegressionTool-"${VERSION_STRING}"-Windows.zip ./dist/* | ||
;; | ||
|
||
*) | ||
echo "Unknown config passed to packaging script!" | ||
;; | ||
|
||
esac |
Oops, something went wrong.