-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
54 lines (54 loc) · 2.54 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
dist: jammy
language: python
python:
- '3.9'
- '3.10'
jobs:
allow_failures:
- python: '3.10'
cache:
- pip
- apt
before_install:
- pip install poetry
- poetry --version
install:
- poetry install -vv
- poetry show
script:
- poetry run py.test -vv --cov=src --cov-report xml tests
- poetry run python th_wrapper.py -w truffles.json -c thog_config.json -g file:///${PWD}/ --check
after_script:
- poetry run python-codacy-coverage -r coverage.xml
before_deploy:
- poetry config repositories.testpypi https://test.pypi.org/legacy/
- poetry config pypi-token.testpypi $PYPI_API_TOKEN
- poetry config pypi-token.pypi $PYPI_PROD_API_TOKEN
- poetry build
deploy:
# test pypi deployment on branches that are not master
- provider: script
skip_cleanup: true
script: poetry publish -n -vv -r testpypi || true
on:
python: 3.9
repo: uc-cdis/pypfb
tags: false
all_branches: true
condition: "$TRAVIS_BRANCH != master"
# real pypi deployment on tags on master
- provider: script
skip_cleanup: true
script: poetry publish -n -vv
on:
python: 3.9
repo: uc-cdis/pypfb
tags: true
env:
global:
- PIPENV_IGNORE_VIRTUALENVS=1
- secure: kfcy2VT1IVmFqKqB4sx6yvZWM/aVldn6ZVTMKxXRCmcUcj2BC2x3gTttjRCRiVtCNIhSPwftsiqFy9jyGft/ylFXeN97vzZJu4oWYLGj/JFm2undiwQ/bC66NZUJUaQsn6SVZ3nsn4V9wMV4iW1ySrdTr/8M5//bOy5BjWRTNN8AZ1yH0p4BLAsA1umvmo5bcXMeHUJpXs0iSRZe1yO1CI+0gfIPz2MdbzJUN3surr4OCvkbYD/zpeznV5eXbDrrHN1WoAybKRYA/I6WpvoV5YU0z8PShNVRkxZRNWjctF2sZnO/n5fGUMEF7qxIOaGbfIHtVDD4jbaZsDKo7RR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