mirror of
https://github.com/jarun/nnn.git
synced 2025-02-17 14:54:36 +00:00
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.
This commit is contained in:
parent
48cf378c7b
commit
a5a15b42eb
|
@ -2,6 +2,10 @@ language: c
|
||||||
sudo: required
|
sudo: required
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- REPO=nnn
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Access more recent gcc and clang via a Trusty image
|
# Access more recent gcc and clang via a Trusty image
|
||||||
|
@ -22,11 +26,16 @@ script:
|
||||||
- make clean;
|
- make clean;
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
|
- cd ..
|
||||||
|
- rm -rf $REPO/.git
|
||||||
|
- tar -czf $REPO-${TRAVIS_TAG}.tar.gz $REPO
|
||||||
|
- cd $REPO
|
||||||
- unset CFLAGS
|
- unset CFLAGS
|
||||||
- sudo apt-get update -qy
|
- sudo apt-get update -qy
|
||||||
- sudo apt-get install -qy python3 python3-pip
|
- sudo apt-get install -qy python3 python3-pip
|
||||||
- sudo python3 -m pip install packagecore
|
- sudo python3 -m pip install packagecore
|
||||||
- packagecore -o dist/ "${TRAVIS_TAG#v}"
|
- packagecore -o dist/ "${TRAVIS_TAG#v}"
|
||||||
|
- mv ../$REPO-${TRAVIS_TAG}.tar.gz dist/
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
|
|
Loading…
Reference in a new issue