-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (29 loc) · 958 Bytes
/
.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
os: linux
language: cpp
compiler: g++
jobs:
include:
- os: linux
dist: focal
branches:
only:
- master
- /^v\d+\.\d+\.\d+.*$/ # version tags
notifications:
email:
recipients:
on_success: never
on_failure: always
before_script:
- echo "Travis tag is $TRAVIS_TAG"
- sudo apt update && sudo apt install python3-pip python3-setuptools cmake patchelf python3-venv
- sudo pip3 install -U setuptools urllib3 requests # tentative fix for RequestsDependencyWarning: urllib3 (1.26.8) or chardet (3.0.4) doesn't match a supported version!
- sudo pip3 install build twine
- sudo pip3 install .
script:
- set -e
- python3 test/test_run_bash_tests.py
- sudo python3 -m build
- if [ -z $TRAVIS_TAG ] || [ "$(lsb_release -cs)" == "bionic" ]; then echo "Not a tag build, will not upload to pypi"; else twine upload -u __token__ -p $PYPI_TOKEN dist/*; fi