Skip to content

Commit e6873cc

Browse files
committed
Change: Use own script for pypi deployment
1 parent 0e24779 commit e6873cc

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: cpp
22
sudo: true
3+
dist: xenial
34

45
services:
56
- docker
@@ -28,9 +29,8 @@ before_deploy:
2829
- cd ${TRAVIS_BUILD_DIR}
2930

3031
deploy:
31-
- provider: pypi
32-
user: "${PYPI_USERNAME}"
33-
password: "${PYPI_PASSWORD}"
32+
- provider: script
33+
script: bash ci/scripts/pypi_deploy.sh
3434
on:
3535
tags: true
3636
- provider: bintray

ci/scripts/pypi_deploy.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
# This file is part of servoarray.
3+
#
4+
# servoarray is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# servoarray is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with servoarray. If not, see <http://www.gnu.org/licenses/>.
16+
17+
set -euo pipefail
18+
19+
apt install -y twine
20+
twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*

0 commit comments

Comments
 (0)