stcgal/.travis.yml

32 lines
533 B
YAML
Raw Normal View History

2017-09-18 16:47:16 +02:00
sudo: required
dist: trusty
2017-09-18 15:53:26 +02:00
language: python
2017-09-18 16:06:12 +02:00
cache:
2017-09-18 17:50:35 +02:00
- pip
2017-09-18 15:53:26 +02:00
python:
2017-09-18 17:50:35 +02:00
- "3.4"
- "3.5"
- "3.6"
- "pypy3"
2017-09-18 16:47:16 +02:00
before_install:
- sudo apt install rpm dpkg-dev debhelper dh-python
2017-09-18 15:53:26 +02:00
install:
- pip install pyserial pyusb
script:
- python setup.py build
- python setup.py test
2017-09-18 16:47:16 +02:00
- python setup.py bdist_rpm
- python setup.py bdist
2017-09-18 17:50:35 +02:00
- cp ../*.deb dist/
2017-09-18 16:47:16 +02:00
deploy:
2017-09-18 17:50:35 +02:00
python: "3.5"
2017-09-18 16:47:16 +02:00
provider: releases
api_key: $GH_TOKEN
2017-09-18 17:50:35 +02:00
file_glob: true
2017-09-18 16:47:16 +02:00
file:
2017-09-18 17:50:35 +02:00
- dist/stcgal*.deb
- dist/stcgal*.rpm
2017-09-18 16:47:16 +02:00
skip_cleanup: true
on:
tags: true