Skip to content
Snippets Groups Projects
Commit 42272a49 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Add deploy for Travis

parent 00177e4b
Branches
Tags
No related merge requests found
Pipeline #22274 failed with stage
in 1 minute and 23 seconds
# Travis configuration file using the build matrix feature
# Read more under http://docs.travis-ci.com/user/build-configuration/
# THIS SCRIPT IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS!
dist: bionic dist: bionic
sudo: false sudo: false
language: python language: python
...@@ -13,62 +9,66 @@ addons: ...@@ -13,62 +9,66 @@ addons:
matrix: matrix:
fast_finish: true fast_finish: true
allow_failures: allow_failures:
- os: osx - os: osx
- os: windows - os: windows
include: include:
- python: 3.5 - python: 3.5
env: DISTRIB="ubuntu" env: DISTRIB="ubuntu"
before_install: before_install:
- sudo apt-get install -y ninja-build build-essential nvidia-cuda-toolkit - sudo apt-get install -y ninja-build build-essential nvidia-cuda-toolkit
- python: 3.6 - python: 3.6
before_install: before_install:
- sudo apt-get install -y ninja-build build-essential nvidia-cuda-toolkit - sudo apt-get install -y ninja-build build-essential nvidia-cuda-toolkit
- python: 3.7 - python: 3.7
before_install: before_install:
- sudo apt-get install -y ninja-build build-essential nvidia-cuda-toolkit - sudo apt-get install -y ninja-build build-essential nvidia-cuda-toolkit
- python: 3.8 - python: 3.8
before_install: before_install:
- sudo apt-get install -y ninja-build build-essential nvidia-cuda-toolkit - sudo apt-get install -y ninja-build build-essential nvidia-cuda-toolkit
#- name: "Lint and documentation test" - name: Python 3.7.2 on macOS
#env: DISTRIB="ubuntu" TOX_PYTHON_VERSION="py36" COVERAGE="false" LINT="true" os: osx
- name: "Python 3.7.2 on macOS" osx_image: xcode11
os: osx language: shell
osx_image: xcode11 # Python 3.7.2 running on macOS 10.14.3 before_install:
language: shell # 'language: python' is an error on Travis CI macOS - brew update && brew upgrade python
before_install: - brew install ninja
- brew update && brew upgrade python - alias python=python3
- brew install ninja - alias pip="python3 -m pip"
- alias python=python3 - shopt -s expand_aliases
- alias pip="python3 -m pip" before_cache:
- shopt -s expand_aliases - brew cleanup
before_cache: - name: Python 3.7.3 on Windows
- brew cleanup os: windows
- name: "Python 3.7.3 on Windows" language: shell
os: windows # Windows 10.0.17134 N/A Build 17134 before_install:
language: shell # 'language: python' is an error on Travis CI Windows - choco install python
before_install: - python -m pip install --upgrade pip
- choco install python env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
- python -m pip install --upgrade pip
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
install: install:
- source tests/travis_install.sh - source tests/travis_install.sh
- pip3 install torch - pip3 install torch
- pip3 install -e . - pip3 install -e .
- pip3 install torch || echo "failed to install machine learning stuff" - pip3 install torch || echo "failed to install machine learning stuff"
before_script: before_script:
- git config --global user.email "stephan.seitz@fau.de" - git config --global user.email "stephan.seitz@fau.de"
- git config --global user.name "Stephan Seitz" - git config --global user.name "Stephan Seitz"
script: script:
- python setup.py bdist_wheel - python setup.py bdist_wheel
#- if [[ "$LINT" == "true" ]]; then flake8 src;python setup.py doctest; exit 0; fi
after_success: after_success:
- if [[ "$COVERAGE" == "true" ]]; then coveralls || echo "failed"; codecov; fi - if [[ "$COVERAGE" == "true" ]]; then coveralls || echo "failed"; codecov; fi
after_script: after_script:
- travis-cleanup - travis-cleanup
cache: cache:
pip: true pip: true
directories: directories:
- $HOME/miniconda - "$HOME/miniconda"
- /c/Python37 - "/c/Python37"
- $HOME/Library/Caches/Homebrew - "$HOME/Library/Caches/Homebrew"
deploy:
provider: pypi
user: "__token__"
password:
secure: InaJRipNoDcgiYlaQpkNangz4GX0j56z3jP9WYV+mphq6GOZnPDh4d9UikWiFnBpr9i6Q5+Rn6YJTLfohcqLfJEkoCVLSQ3Elie0gsZ0HQYnw1PIHa7mvgTgAcMigFghL1pMY/ELopR9+/AVg7l5PxCxWBnsgZn6LkUPFClly8nlKm/I1Mmb764EzJWx7o+SesmSxt5av0jGbfVPs6MQ/yB8mb1LuX/FHJ1D1FmnCgU6/CdpiwPE1gcfawMjQClBR11eTyN1d0GoLKOuV6l6rEI2b18eNW85t7aNl8Daqhwk+X4iMce/E1oUjVI8e8C3bztm4nuY/RpxccFnpP/hzdIng67GFyOQNDC//JmZkeO0BeA6gqJ8PG+HH/wboviE13ROVmwkxl1mNrovor6ucLo6OqWkh9nqnGhCisRigbO5UVVU9UKmQLLeB3Mrn819TbWXj2cOpHsxrDxqYRoBPNKtKa58PqCXzGtJZn/LrL/Ki4ioHcKAuc7jVSV55Giro1HdH0glLI7A9tg1QUhVHpMs6cq/l9xf+6Ifa6nCwCamrpwQCZhyRaqsyn9KaxTnmaNtM9Sj/HugMB/F91b729IVxrZ4H7Dg5sdVS1+ZY7gC+mBJLs0M+ILa7y/3erKKs21GA7yTPKfTszflB5q8jcBDcjP1sjjdokSigyZ689o=
on:
tags: true
distributions: "bdist_wheel"
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment