aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jolpaz <35129580+jolpaz@users.noreply.github.com>2018-04-09 14:09:53 +0200
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-04-09 17:39:53 +0530
commita5a15b42ebd88bf8e740424ac2f47b0df33158e0 (patch)
treef0195a7ea2ff5d91b223d3852eea76972adb49a6
parent48cf378c7ba50f2c44b0fe58ceea7b46e80123fd (diff)
downloadnnn-a5a15b42ebd88bf8e740424ac2f47b0df33158e0.tar.gz
Source code release tarball build on Travis-CI (#101)
* Build source tarball on travis CI And add it to github release along with other packages. * Change key for releases upload * Fix repo for release upload * Revert to upstream's creds and repo.
-rw-r--r--.travis.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 4eaf348..6efc405 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,10 @@ language: c
sudo: required
services:
- docker
+env:
+ global:
+ - REPO=nnn
+
matrix:
include:
# Access more recent gcc and clang via a Trusty image
@@ -22,11 +26,16 @@ script:
- make clean;
before_deploy:
+ - cd ..
+ - rm -rf $REPO/.git
+ - tar -czf $REPO-${TRAVIS_TAG}.tar.gz $REPO
+ - cd $REPO
- unset CFLAGS
- sudo apt-get update -qy
- sudo apt-get install -qy python3 python3-pip
- sudo python3 -m pip install packagecore
- packagecore -o dist/ "${TRAVIS_TAG#v}"
+ - mv ../$REPO-${TRAVIS_TAG}.tar.gz dist/
deploy:
provider: releases