generated from IBM/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 1.13 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
language: python
python:
- "3.9"
before_install:
- pip install 'urllib3<2.0' #Enforce SSL version to be able to run twine
- pip install -U build
- pip install -U twine
install:
- pip install -r requirements.txt
- pip install .
env:
global:
- PYTHONPATH=src:test
script:
- python -m unittest discover
- python -m build
#- docker build .
deploy:
- provider: script
#script: python -m twine upload --skip-existing --verbose --password $TWINE_TEST_TOKEN --repository testpypi dist/* #test instance
script: python -m twine upload --skip-existing --verbose --password $TWINE_PROD_TOKEN dist/* #production instance.
on:
# all_branches: true # uncomment for testing purposes
branch: main # uncomment on production
# tags: true # If uncommented, the pip package will be created only if tag is created. Otherwise it will be always created for production branch.
- provider: releases
edge: true
draft: true
file: dist/*
on:
# all_branches: true # uncomment for testing purposes
# branch: main # uncomment on production
tags: true # We need to consider if we want to publish all versions or every build