2020-06-23 10:55:37 -04:00
|
|
|
language: python
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- TRANSLATER_INTEGRATION=True ENERGYPLUS_VERSION=9.2.0 ENERGYPLUS_SHA=921312fa1d
|
|
|
|
ENERGYPLUS_INSTALL_VERSION=9-2-0 MINICONDA_VERSION=latest
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- wine
|
|
|
|
- libgfortran3
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- name: Python 3.8 on Xenial Linux
|
|
|
|
python: 3.8 # this works for Linux but is ignored on macOS or Windows
|
2020-06-24 09:41:52 -04:00
|
|
|
script: pytest --cov=translater --verbose tests/
|
2020-06-24 11:05:45 -04:00
|
|
|
after_success:
|
|
|
|
- coverage report -m
|
2020-06-24 11:14:59 -04:00
|
|
|
- coveralls
|
2020-06-23 10:55:37 -04:00
|
|
|
- name: Python 3.8 on macOS
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode11.2
|
|
|
|
language: objective-c
|
2020-06-24 09:41:52 -04:00
|
|
|
script: pytest --cov=translater --verbose tests/
|
2020-06-23 10:55:37 -04:00
|
|
|
- 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
|
2020-06-24 09:41:52 -04:00
|
|
|
script: pytest --cov=translater --verbose tests/
|
2020-06-23 10:55:37 -04:00
|
|
|
- stage: deploy
|
|
|
|
script: echo "Deploying to PyPi and GitHub releases ..."
|
|
|
|
deploy:
|
|
|
|
- provider: pypi
|
2020-06-23 14:15:52 -04:00
|
|
|
user: __token__
|
2020-06-23 10:55:37 -04:00
|
|
|
password:
|
2020-06-23 14:15:52 -04:00
|
|
|
secure: Ys6dmv5j3DG8jelwyqkczfnr87kihTgV0bnNVnGrag/7Pnobory1L0zh9pUc02gOiZzNrPFMb0hBQ/kEfYwKVFobRTwsbOpPAJQD+doIaf2KTQ42yUK2zPW0SqpwJMcGF1BfkgRh9J1omsWlfU+D7Xf5q47ksyQtO7A8GGFyc2mk2/4uqH4f8MQLWpU8zyUmgCTbI7RplCQsaa3tySwi7Y8bBEZwWV5jleohOz0tOPc74dWRJi4r0maeCbWa64hp1W7lQq2ZjIc//66a9RnauIdNd9Z10APbIcWQnyB30j6tZKIbkgouzxZ3IrBlby6raxXbpfviH1hyXII/Ppfv65jJX2VPX/VU0tPqto/DTR8YZ1IbUrAD+Zndxt/ZsvsxhHw610/GKDrQBJkcEiVsKhzptYWrElvNTd2enJkFbIrb2r1u2+YzktsHJd9sEMlAqP72JHRdrvT3cPD1VRmqr61xRJBvnB6rJwwctEHtVKwunhTWEW+NA0Sdp/Qa8Ak1vGl1LBlqAbcDNdizt4DC+x4N6BtjAtrNrcw3kj3m8fIhaXNQeUapwOHMRVSzAtkBDGbU6jbkgTVVMmXNEuoAvReXAIFJe+tn8kemRMlY94vpRotfBSUOQEVETL0luMgIL8Zyl2FHLFxruDm9Ea1wJAUOldStbdVr/AvfoAXjM9k=
|
2020-06-23 10:55:37 -04:00
|
|
|
on:
|
|
|
|
distributions: sdist bdist_wheel
|
|
|
|
repo: louisleroy5/translater
|
2020-06-23 18:55:08 -04:00
|
|
|
branch: master
|
|
|
|
tags: true
|
2020-06-23 10:55:37 -04:00
|
|
|
before_install:
|
|
|
|
- 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 pip
|
|
|
|
- pip install --upgrade setuptools
|
|
|
|
- pip install .[dev]
|