Move clixon CI from travis to github actions

This commit is contained in:
Olof hagsand 2021-06-16 13:05:51 +02:00
parent b40dafb691
commit 113f92ab41
5 changed files with 29 additions and 15 deletions

27
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Clixon CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install cligen
run: (git clone https://github.com/clicon/cligen.git && cd cligen && ./configure --with-restconf=native && make && sudo make install)
- name: configure
run: ./configure
- name: make
run: make
- name: make install
run: sudo make install
- name: ldconfig
run: sudo ldconfig
- name: make test
run: make test

View file

@ -1,13 +0,0 @@
language: c
# safelist
os: linux
arch: amd64
branches:
only:
- master
script: ./configure --with-restconf=fcgi && make && sudo make install && make test
before_script:
- sudo apt-get install -y libfcgi-dev
# - if [[ -n "${DOCKERUSER}" ]]; then echo "$DOCKERPASSWD" | docker login -u "$DOCKERUSER" --password-stdin; fi
- echo "$DOCKERPASSWD" | docker login -u "$DOCKERUSER" --password-stdin
- ./test/travis/before_script.sh

View file

@ -88,6 +88,7 @@ Developers may need to change their code
### Minor features ### Minor features
* Moved CI from travis to github actions
* Added autotool check for getresuid (+ related functions) necessary for lowering of priviliges for backend and restconf * Added autotool check for getresuid (+ related functions) necessary for lowering of priviliges for backend and restconf
* If getresuid is not available, CLICON_RESTCONF_PRIVILEGES must be set to 'none' * If getresuid is not available, CLICON_RESTCONF_PRIVILEGES must be set to 'none'
* Added new startup-mode: `running-startup`: First try running db, if it is empty try startup db. * Added new startup-mode: `running-startup`: First try running db, if it is empty try startup db.

View file

@ -2,7 +2,7 @@
<img src="https://www.clicon.org/Clixon_logga_liggande_med-ikon.png" width="400"> <img src="https://www.clicon.org/Clixon_logga_liggande_med-ikon.png" width="400">
</div> </div>
[![Build Status](https://travis-ci.org/clicon/clixon.png)](https://travis-ci.org/clicon/clixon) [![Documentation Status](https://readthedocs.org/projects/clixon-docs/badge/?version=latest)](https://clixon-docs.readthedocs.io/en/latest/?badge=latest) [![codecov](https://codecov.io/gh/clicon/clixon/branch/master/graph/badge.svg?token=qyc6ssg9E7)](https://codecov.io/gh/clicon/clixon) [![Build Status](https://github.com/clicon/clixon/actions/workflows/ci.yml/badge.svg)](https://github.com/clicon/clixon/actions/workflows/ci.yml) [![Documentation Status](https://readthedocs.org/projects/clixon-docs/badge/?version=latest)](https://clixon-docs.readthedocs.io/en/latest/?badge=latest) [![codecov](https://codecov.io/gh/clicon/clixon/branch/master/graph/badge.svg?token=qyc6ssg9E7)](https://codecov.io/gh/clicon/clixon)
Clixon is a YANG-based configuration manager, with interactive CLI, Clixon is a YANG-based configuration manager, with interactive CLI,
NETCONF and RESTCONF interfaces, an embedded database and transaction NETCONF and RESTCONF interfaces, an embedded database and transaction

View file

@ -115,7 +115,6 @@ clicon_file_dirent(const char *dir,
int direntStructSize; int direntStructSize;
#endif #endif
clicon_debug(1, "%s", __FUNCTION__);
*ent = NULL; *ent = NULL;
nent = 0; nent = 0;
if (regexp && (res = regcomp(&re, regexp, REG_EXTENDED)) != 0) { if (regexp && (res = regcomp(&re, regexp, REG_EXTENDED)) != 0) {