36 lines
1.4 KiB
YAML
36 lines
1.4 KiB
YAML
|
dist: bionic
|
||
|
sudo: false
|
||
|
language: python
|
||
|
python: 3.8
|
||
|
cache:
|
||
|
directories:
|
||
|
- "./tests/artifacts"
|
||
|
# - "$HOME/.prototorch/datasets"
|
||
|
install:
|
||
|
- pip install .[all] --progress-bar off
|
||
|
|
||
|
# Generate code coverage report
|
||
|
script:
|
||
|
- coverage run -m pytest
|
||
|
|
||
|
# Push the results to codecov
|
||
|
after_success:
|
||
|
- bash <(curl -s https://codecov.io/bash)
|
||
|
|
||
|
# Publish on PyPI
|
||
|
deploy:
|
||
|
provider: pypi
|
||
|
username: __token__
|
||
|
password:
|
||
|
secure: rVQNCxKIuiEtMz4zLSsjdt6spG7cf3miKN5eqjxZfcELALHxAV4w/+CideQObOn3u9emmxb87R9XWKcogqK2MXqnuIcY4mWg7HUqaip1bhz/4YiVXjFILcG6itjX9IUF1DrtjKKRk6xryucSZcEB7yTcXz1hQTb768KWlLlKOVTRNwr7j07eyeafexz/L2ANQCqfOZgS4b0k2AMeDBRPykPULtyeneEFlb6MJZ2MxeqtTNVK4b/6VsQSZwQ9jGJNGWonn5Y287gHmzvEcymSJogTe2taxGBWawPnOsibws9v88DEAHdsEvYdnqEE3hFl0R5La2Lkjd8CjNUYegxioQ57i3WNS3iksq10ZLMCbH29lb9YPG7r6Y8z9H85735kV2gKLdf+o7SPS03TRgjSZKN6pn4pLG0VWkxC6l8VfLuJnRNTHX4g6oLQwOWIBbxybn9Zw/yLjAXAJNgBHt5v86H6Jfi1Va4AhEV6itkoH9IM3/uDhrE/mmorqyVled/CPNtBWNTyoDevLNxMUDnbuhH0JzLki+VOjKnTxEfq12JB8X9faFG5BjvU9oGjPPewrp5DGGzg6KDra7dikciWUxE1eTFFDhMyG1CFGcjKlDvlAGHyI6Kih35egGUeq+N/pitr2330ftM9Dm4rWpOTxPyCI89bXKssx/MgmLG7kSM=
|
||
|
on:
|
||
|
tags: true
|
||
|
skip_existing: true
|
||
|
|
||
|
# The password is encrypted with:
|
||
|
# `cd prototorch && travis encrypt your-pypi-api-token --add deploy.password`
|
||
|
# See https://docs.travis-ci.com/user/deployment/pypi and
|
||
|
# https://github.com/travis-ci/travis.rb#installation
|
||
|
# for more details
|
||
|
# Note: The encrypt command does not work well in ZSH.
|