diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..83b97642 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d281f199..00000000 --- a/.travis.yml +++ /dev/null @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b9a8920..0197235f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index c1c50637..44a03c24 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -[![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, NETCONF and RESTCONF interfaces, an embedded database and transaction diff --git a/lib/src/clixon_file.c b/lib/src/clixon_file.c index b2ac679f..6c0b4707 100644 --- a/lib/src/clixon_file.c +++ b/lib/src/clixon_file.c @@ -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) {