mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Integrate PackageCore to generate packages
This commit is contained in:
parent
e2fae851c3
commit
7a551b5d6b
42
.travis.yml
42
.travis.yml
|
@ -1,5 +1,7 @@
|
||||||
language: c
|
language: c
|
||||||
sudo: required
|
sudo: required
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Access more recent gcc and clang via a Trusty image
|
# Access more recent gcc and clang via a Trusty image
|
||||||
|
@ -13,48 +15,32 @@ matrix:
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
- os: osx
|
- os: osx
|
||||||
compiler: clang
|
compiler: clang
|
||||||
- os: linux
|
|
||||||
dist: trusty
|
|
||||||
env: USE_DOCKER=1 OS_TYPE=centos OS_VERSION=7
|
|
||||||
- os: linux
|
|
||||||
dist: trusty
|
|
||||||
env: USE_DOCKER=1 OS_TYPE=fedora OS_VERSION=26
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- if [ "$USE_DOCKER" = "1" ]; then
|
|
||||||
sudo systemctl start docker.service;
|
|
||||||
sudo docker pull $OS_TYPE:$OS_VERSION;
|
|
||||||
fi
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- if [ "$USE_DOCKER" = "1" ]; then
|
|
||||||
./build-docker $OS_TYPE $OS_VERSION;
|
|
||||||
sudo chown -R $(id -un).$(id -gn) dist;
|
|
||||||
else
|
|
||||||
export CFLAGS=-Werror;
|
export CFLAGS=-Werror;
|
||||||
make clean;
|
make clean;
|
||||||
make;
|
make;
|
||||||
make clean;
|
make clean;
|
||||||
make -f Makefile.native;
|
make -f Makefile.native;
|
||||||
fi
|
|
||||||
|
|
||||||
after_success:
|
before_deploy:
|
||||||
- if [ "$USE_DOCKER" = "1" ]; then
|
- sudo apt-get update -qy
|
||||||
ls -l dist;
|
- sudo apt-get install -qy python3 python3-pip
|
||||||
fi
|
- python3 -m pip install packagecore
|
||||||
|
- packagecore -o dist/ "${TRAVIS_TAG#v}"
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
skip_cleanup: true
|
|
||||||
provider: releases
|
provider: releases
|
||||||
api-key:
|
api-key:
|
||||||
secure: bdw73zBeBEZtDZGEyFpAksnpwLHTBaC7VP1pONmnsXv4qmMcynASz0LfE4krEdAsRnvxQvqPZXviy/SZ3bmaLpVQmJIC1uRWIyOBE6K/7ddf+wfLy+1uO9EPd/zDF/D28Xy8QJLDGDZI08BY5Fist4XowyvtdW3GRwwDL7TwyZyigr0fkqLJwYcqCpojsHsjXjhkpGZqB5XRztaJ4kIEVz8du03ZU1l5kA9lI8Pdk9+mntOOt6emlaJl+Wr81QkwA8TvGPlZ1VP/+h9YCtlRy/4OuiU+bg5/Atxjh8M6rsq+WpZ3ZdYbR6x5vP78p9f6TsJa4ymGhhW6MhYrKPwdT4oITzZcOXJl6AEoIvrWHQWLY7K3WaEfRbT+DODnXks0ToFKls7wyWfi/AHI0ejeDD5Na5/XhY0jdVYOVvovoY2n8LBaqRTFJDYKoCbJ1S+6myUvvmFVwiZWcgOv9gVX1aaIl4wh+XuzUtPDJTcJtUOE8Q2MWl0bdYVtEkHVRznPXN5u3odrDaeTD3vo+pEaEpshLoSKhCyyWvslSzN7T98ez3aw3KFXoFhXPEg5MEJWy7u359MaVwJIsOGUDAFhy/Y7h83LjQYnu8cmX2wuVrQIRIlGVB0f10GYZzPffZz98I/T0xv75NzpyRs31/wMxvdXz35c8m/yTup4kAkG/1s=
|
secure: bdw73zBeBEZtDZGEyFpAksnpwLHTBaC7VP1pONmnsXv4qmMcynASz0LfE4krEdAsRnvxQvqPZXviy/SZ3bmaLpVQmJIC1uRWIyOBE6K/7ddf+wfLy+1uO9EPd/zDF/D28Xy8QJLDGDZI08BY5Fist4XowyvtdW3GRwwDL7TwyZyigr0fkqLJwYcqCpojsHsjXjhkpGZqB5XRztaJ4kIEVz8du03ZU1l5kA9lI8Pdk9+mntOOt6emlaJl+Wr81QkwA8TvGPlZ1VP/+h9YCtlRy/4OuiU+bg5/Atxjh8M6rsq+WpZ3ZdYbR6x5vP78p9f6TsJa4ymGhhW6MhYrKPwdT4oITzZcOXJl6AEoIvrWHQWLY7K3WaEfRbT+DODnXks0ToFKls7wyWfi/AHI0ejeDD5Na5/XhY0jdVYOVvovoY2n8LBaqRTFJDYKoCbJ1S+6myUvvmFVwiZWcgOv9gVX1aaIl4wh+XuzUtPDJTcJtUOE8Q2MWl0bdYVtEkHVRznPXN5u3odrDaeTD3vo+pEaEpshLoSKhCyyWvslSzN7T98ez3aw3KFXoFhXPEg5MEJWy7u359MaVwJIsOGUDAFhy/Y7h83LjQYnu8cmX2wuVrQIRIlGVB0f10GYZzPffZz98I/T0xv75NzpyRs31/wMxvdXz35c8m/yTup4kAkG/1s=
|
||||||
file_glob: true
|
file_glob: true
|
||||||
file:
|
file:
|
||||||
- dist/*.deb
|
- dist/*
|
||||||
- dist/*.rpm
|
skip_cleanup: true
|
||||||
|
python: "3.6"
|
||||||
on:
|
on:
|
||||||
condition: $USE_DOCKER = 1
|
condition:
|
||||||
|
- "$TRAVIS_OS_NAME == linux"
|
||||||
|
- "$CC == gcc"
|
||||||
|
tags: true
|
||||||
repo: jarun/nnn
|
repo: jarun/nnn
|
||||||
tags: true
|
|
||||||
|
|
||||||
tags: true
|
|
||||||
|
|
61
packagecore.yaml
Normal file
61
packagecore.yaml
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
name: nnn
|
||||||
|
metadata:
|
||||||
|
maintainer: Arun Prakash Jana <engineerarun@gmail.com>
|
||||||
|
license: BSD 2-Clause
|
||||||
|
summary: The missing terminal file browser for X.
|
||||||
|
homepage: https://github.com/jarun/nnn
|
||||||
|
commands:
|
||||||
|
install:
|
||||||
|
- make PREFIX="/usr" install DESTDIR="${BP_DESTDIR}"
|
||||||
|
packages:
|
||||||
|
archlinux:
|
||||||
|
builddeps:
|
||||||
|
- make
|
||||||
|
- ncurses-devel
|
||||||
|
- readline-devel
|
||||||
|
deps:
|
||||||
|
- ncurses
|
||||||
|
- readline
|
||||||
|
fedora26:
|
||||||
|
builddeps:
|
||||||
|
- make
|
||||||
|
- ncursesw-devel
|
||||||
|
- readline-devel
|
||||||
|
deps:
|
||||||
|
- libncursesw
|
||||||
|
- libreadline
|
||||||
|
centos7.3:
|
||||||
|
builddeps:
|
||||||
|
- make
|
||||||
|
- ncursesw-devel
|
||||||
|
- readline-devel
|
||||||
|
deps:
|
||||||
|
- libncursesw
|
||||||
|
- libreadline
|
||||||
|
commands:
|
||||||
|
pre:
|
||||||
|
- yum install epel-release
|
||||||
|
ubuntu16.04:
|
||||||
|
builddeps:
|
||||||
|
- make
|
||||||
|
- libncursesw5-dev
|
||||||
|
- libreadline6-dev
|
||||||
|
deps:
|
||||||
|
- libncursesw5
|
||||||
|
- libreadline6
|
||||||
|
ubuntu17.10:
|
||||||
|
builddeps:
|
||||||
|
- make
|
||||||
|
- libncursesw5-dev
|
||||||
|
- libreadline6-dev
|
||||||
|
deps:
|
||||||
|
- libncursesw5
|
||||||
|
- libreadline6
|
||||||
|
debian9:
|
||||||
|
builddeps:
|
||||||
|
- make
|
||||||
|
- libncursesw5-dev
|
||||||
|
- libreadline6-dev
|
||||||
|
deps:
|
||||||
|
- libncursesw5
|
||||||
|
- libreadline6
|
Loading…
Reference in a new issue