prototorch/.travis.yml

35 lines
1.4 KiB
YAML
Raw Normal View History

dist: bionic
2020-04-06 19:05:20 +00:00
sudo: false
language: python
python: 3.8
cache:
directories:
2021-02-10 16:04:04 +00:00
- "./tests/artifacts"
2020-04-06 19:05:20 +00:00
install:
2021-05-10 14:37:43 +00:00
- pip install .[all] --progress-bar off
2020-04-06 19:05:20 +00:00
2021-02-10 16:04:04 +00:00
# Generate code coverage report
2020-04-06 19:05:20 +00:00
script:
2021-02-10 16:04:04 +00:00
- coverage run -m pytest
2020-04-06 19:05:20 +00:00
# Push the results to codecov
2020-04-06 19:05:20 +00:00
after_success:
2021-02-10 16:04:04 +00:00
- 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:
2021-05-10 15:14:58 +00:00
tags: true
skip_existing: true
2021-02-10 16:04:04 +00:00
# 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.