Move clixon CI from travis to github actions
This commit is contained in:
parent
b40dafb691
commit
113f92ab41
5 changed files with 29 additions and 15 deletions
27
.github/workflows/ci.yml
vendored
Normal file
27
.github/workflows/ci.yml
vendored
Normal 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
|
||||
13
.travis.yml
13
.travis.yml
|
|
@ -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
|
||||
|
|
@ -88,6 +88,7 @@ Developers may need to change their code
|
|||
|
||||
### 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
|
||||
* 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.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<img src="https://www.clicon.org/Clixon_logga_liggande_med-ikon.png" width="400">
|
||||
</div>
|
||||
|
||||
[](https://travis-ci.org/clicon/clixon) [](https://clixon-docs.readthedocs.io/en/latest/?badge=latest) [](https://codecov.io/gh/clicon/clixon)
|
||||
[](https://github.com/clicon/clixon/actions/workflows/ci.yml) [](https://clixon-docs.readthedocs.io/en/latest/?badge=latest) [](https://codecov.io/gh/clicon/clixon)
|
||||
|
||||
Clixon is a YANG-based configuration manager, with interactive CLI,
|
||||
NETCONF and RESTCONF interfaces, an embedded database and transaction
|
||||
|
|
|
|||
|
|
@ -115,7 +115,6 @@ clicon_file_dirent(const char *dir,
|
|||
int direntStructSize;
|
||||
#endif
|
||||
|
||||
clicon_debug(1, "%s", __FUNCTION__);
|
||||
*ent = NULL;
|
||||
nent = 0;
|
||||
if (regexp && (res = regcomp(&re, regexp, REG_EXTENDED)) != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue