forked from grigorig/stcgal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run tests for each commit and deploy packages (deb/rpm) for each release tag.
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
sudo: required | ||
dist: trusty | ||
language: python | ||
cache: | ||
- pip | ||
python: | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
- "pypy3" | ||
before_install: | ||
- sudo apt install rpm dpkg-dev debhelper dh-python python3-setuptools fakeroot python3-serial python3-yaml | ||
install: | ||
- pip install pyserial pyusb | ||
script: | ||
- python setup.py build | ||
- python setup.py test | ||
before_deploy: | ||
- deactivate | ||
- python3 setup.py bdist_rpm | ||
- dpkg-buildpackage -uc -us | ||
- cp ../*.deb dist/ | ||
deploy: | ||
provider: releases | ||
api_key: $GH_TOKEN | ||
file_glob: true | ||
file: | ||
- dist/stcgal*_all.deb | ||
- dist/stcgal*.noarch.rpm | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
python: "3.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters