Add deployment (DEB/RPM)
This commit is contained in:
parent
e27e7bedcb
commit
e9f66d8874
16
.travis.yml
16
.travis.yml
@ -1,13 +1,29 @@
|
|||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
language: python
|
language: python
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- "$HOME/.cache/pip"
|
- "$HOME/.cache/pip"
|
||||||
python:
|
python:
|
||||||
- 3.4
|
- 3.4
|
||||||
|
- 3.5
|
||||||
- 3.6
|
- 3.6
|
||||||
- pypy3
|
- pypy3
|
||||||
|
before_install:
|
||||||
|
- sudo apt install rpm dpkg-dev debhelper dh-python
|
||||||
install:
|
install:
|
||||||
- pip install pyserial pyusb
|
- pip install pyserial pyusb
|
||||||
script:
|
script:
|
||||||
- python setup.py build
|
- python setup.py build
|
||||||
- python setup.py test
|
- python setup.py test
|
||||||
|
- python setup.py bdist_rpm
|
||||||
|
- python setup.py bdist
|
||||||
|
deploy:
|
||||||
|
provider: releases
|
||||||
|
api_key: $GH_TOKEN
|
||||||
|
file:
|
||||||
|
- ../stcgal*.deb
|
||||||
|
- ../stcgal*.rpm
|
||||||
|
skip_cleanup: true
|
||||||
|
on:
|
||||||
|
tags: true
|
||||||
|
Loading…
Reference in New Issue
Block a user