Skip to content

Commit

Permalink
Build and upload tagged releases to GitHub Releases from CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
peplin committed Aug 30, 2015
1 parent aa45907 commit 2069840
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
28 changes: 20 additions & 8 deletions .travis.yml
@@ -1,14 +1,26 @@
language: c
compiler:
- clang
- clang
script: PLATFORM=TESTING make test_long
install:
- gem install coveralls-lcov
- gem install coveralls-lcov
before_install:
- sudo apt-get update -qq
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq -y libgd2-xpm ia32-libs ia32-libs-multiarch; fi
- script/bootstrap.sh
- cd src
- sudo apt-get update -qq
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq -y libgd2-xpm ia32-libs
ia32-libs-multiarch; fi
- script/bootstrap.sh
- cd src
after_success:
- PLATFORM=TESTING make coverage
- coveralls-lcov build/tests/coverage.info
- PLATFORM=TESTING make coverage
- coveralls-lcov build/tests/coverage.info
deploy:
provider: releases
api_key:
secure: NOSHkTeRCfYcfW6ft8/5xOsEmn0DFrfvJL0UFsDQ9f0dBPoXPMJpgbXr+0i4wbMvwIgAKmJ2SfgvIBcm8IWXhLSMsZiaaTvrbomNgqI8ZIghBdSe6GARaiF/9V/A5l/8zCVMs65Kpo1BssC0BiESpIgoOR/aeF5J6TmCIbUe03k=
before_deploy: echo "n" | fab release:skip_tests=True
skip_cleanup: true
file_glob: true
file: "./release/openxc-vi-firmware-v*.*.*.zip"
on:
repo: openxc/vi-firmware
tags: true
5 changes: 3 additions & 2 deletions fabfile.py
Expand Up @@ -289,9 +289,10 @@ def current_branch():
return local("git rev-parse --abbrev-ref HEAD", capture=True)

@task
def release():
def release(skip_tests=False):
with lcd(env.root_dir):
test()
if not skip_tests:
test()

# Make sure this happens after test(), so we move aside and test
# signals.cpp
Expand Down

0 comments on commit 2069840

Please sign in to comment.