]> Sergey Matveev's repositories - nnn.git/commitdiff
Source code release tarball build on Travis-CI (#101)
authorjolpaz <35129580+jolpaz@users.noreply.github.com>
Mon, 9 Apr 2018 12:09:53 +0000 (14:09 +0200)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 9 Apr 2018 12:09:53 +0000 (17:39 +0530)
* 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.

.travis.yml

index 4eaf34884d07ccee0d9a34288e50091519a76e7f..6efc4052f580161461fae0ce949e2007fdd76e5f 100644 (file)
@@ -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