@@ -0,0 +1,37 @@ | |||||
name: ci | |||||
on: | |||||
push: | |||||
branches: [master] | |||||
pull_request: | |||||
branches: [master] | |||||
jobs: | |||||
macOS-gcc: | |||||
runs-on: macOS-latest | |||||
steps: | |||||
- uses: actions/checkout@v2 | |||||
- name: Compile with gcc | |||||
env: | |||||
CC: gcc | |||||
run: | | |||||
export CFLAGS="$CFLAGS -Werror" | |||||
make clean | |||||
make | |||||
make clean | |||||
macOS-clang: | |||||
runs-on: macOS-latest | |||||
steps: | |||||
- uses: actions/checkout@v2 | |||||
- name: Compile with clang | |||||
env: | |||||
CC: clang | |||||
run: | | |||||
brew update | |||||
brew install llvm | |||||
export PATH="/usr/local/opt/llvm/bin:$PATH" | |||||
export CFLAGS="$CFLAGS -Werror" | |||||
make clean | |||||
make | |||||
make clean | |||||
clang-tidy src/* -- -I/usr/include |
@@ -1,58 +0,0 @@ | |||||
language: c | |||||
sudo: required | |||||
services: | |||||
- docker | |||||
env: | |||||
global: | |||||
- REPO=nnn | |||||
matrix: | |||||
include: | |||||
# Access more recent gcc and clang via a Xenial image | |||||
#- os: linux | |||||
# dist: trusty | |||||
# compiler: gcc | |||||
#- os: linux | |||||
# dist: trusty | |||||
# compiler: clang | |||||
- os: osx | |||||
compiler: gcc | |||||
- os: osx | |||||
compiler: clang | |||||
install: | |||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$CC" == "clang" ]]; then brew update; brew install llvm; export PATH="/usr/local/opt/llvm/bin:$PATH"; fi; fi | |||||
script: | |||||
- export CFLAGS=-Werror; | |||||
- make clean; make; | |||||
- make clean; | |||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$CC" == "clang" ]]; then clang-tidy src/* -- -I/usr/include; fi; fi | |||||
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 --upgrade pip | |||||
- sudo python3 -m pip install --upgrade packagecore setuptools | |||||
- packagecore -o dist/ "${TRAVIS_TAG#v}" | |||||
- mv ../$REPO-${TRAVIS_TAG}.tar.gz dist/ | |||||
deploy: | |||||
provider: releases | |||||
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= | |||||
file_glob: true | |||||
file: | |||||
- dist/* | |||||
skip_cleanup: true | |||||
on: | |||||
condition: | |||||
- "$TRAVIS_OS_NAME == linux" | |||||
- "$CC == gcc" | |||||
tags: true | |||||
repo: jarun/nnn |
@@ -3,8 +3,8 @@ | |||||
<p align="center"> | <p align="center"> | ||||
<a href="https://github.com/jarun/nnn/releases/latest"><img src="https://img.shields.io/github/release/jarun/nnn.svg?maxAge=600&label=rel" alt="Latest release" /></a> | <a href="https://github.com/jarun/nnn/releases/latest"><img src="https://img.shields.io/github/release/jarun/nnn.svg?maxAge=600&label=rel" alt="Latest release" /></a> | ||||
<a href="https://repology.org/project/nnn/versions"><img src="https://repology.org/badge/tiny-repos/nnn.svg?header=repos" alt="Availability"></a> | <a href="https://repology.org/project/nnn/versions"><img src="https://repology.org/badge/tiny-repos/nnn.svg?header=repos" alt="Availability"></a> | ||||
<a href="https://travis-ci.org/jarun/nnn"><img src="https://img.shields.io/travis/jarun/nnn/master.svg?label=travis" alt="Travis Status" /></a> | |||||
<a href="https://circleci.com/gh/jarun/workflows/nnn"><img src="https://img.shields.io/circleci/project/github/jarun/nnn.svg?label=circleci" alt="CircleCI Status" /></a> | |||||
<a href="https://circleci.com/gh/jarun/workflows/nnn"><img src="https://img.shields.io/circleci/project/github/jarun/nnn.svg?label=circle%20ci" alt="CircleCI Status" /></a> | |||||
<a href="https://github.com/jarun/nnn/actions"><img src="https://github.com/jarun/nnn/workflows/ci/badge.svg?branch=master" alt="GitHub CI Status" /></a> | |||||
<a href="https://en.wikipedia.org/wiki/Privacy-invasive_software"><img src="https://img.shields.io/badge/privacy-✓-crimson?maxAge=2592000" alt="Privacy Awareness" /></a> | <a href="https://en.wikipedia.org/wiki/Privacy-invasive_software"><img src="https://img.shields.io/badge/privacy-✓-crimson?maxAge=2592000" alt="Privacy Awareness" /></a> | ||||
<a href="https://github.com/jarun/nnn/blob/master/LICENSE"><img src="https://img.shields.io/badge/©-BSD%202--Clause-important.svg?maxAge=2592000" alt="License" /></a> | <a href="https://github.com/jarun/nnn/blob/master/LICENSE"><img src="https://img.shields.io/badge/©-BSD%202--Clause-important.svg?maxAge=2592000" alt="License" /></a> | ||||
</p> | </p> | ||||