Added make test and travis experiment
This commit is contained in:
parent
14343810ca
commit
10d841f4be
8 changed files with 21 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -12,6 +12,7 @@ etc/Makefile
|
|||
example/Makefile
|
||||
lib/Makefile
|
||||
lib/*/Makefile
|
||||
test/Makefile
|
||||
yang/Makefile
|
||||
yang/*/Makefile
|
||||
autom4te.cache/
|
||||
|
|
|
|||
10
.travis.yml
10
.travis.yml
|
|
@ -1 +1,9 @@
|
|||
language: c
|
||||
language: c
|
||||
# safelist
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- develop
|
||||
before_script:
|
||||
- ./test/travis/before_script.sh
|
||||
|
||||
|
|
@ -119,6 +119,7 @@
|
|||
* For backward compatibility, define CLICON_CLI_MODEL_TREENAME_PATCH in clixon_custom.h
|
||||
|
||||
### Minor changes
|
||||
* Added make test from top-level
|
||||
* Added `xml_rootchild_node()` lib function as variant of `xml_rootchild()`
|
||||
* Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf.
|
||||
* Any config option from file can be overrided by giving them on command-line.
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ SHELL = /bin/sh
|
|||
|
||||
SUBDIRS = lib apps include etc datastore util yang
|
||||
|
||||
.PHONY: doc all clean depend $(SUBDIRS) install loc TAGS .config.status docker
|
||||
.PHONY: doc all clean depend $(SUBDIRS) install loc TAGS .config.status docker test
|
||||
|
||||
all: $(SUBDIRS)
|
||||
|
||||
|
|
@ -138,6 +138,9 @@ pkg-rpm: dist
|
|||
pkg-srpm: dist
|
||||
make -C extras/rpm srpm
|
||||
|
||||
test: install-include
|
||||
(cd $@ && $(MAKE) $(MFLAGS) all)
|
||||
|
||||
docker:
|
||||
for i in docker; \
|
||||
do (cd $$i && $(MAKE) $(MFLAGS) $@); done
|
||||
|
|
|
|||
3
configure
vendored
3
configure
vendored
|
|
@ -4433,7 +4433,7 @@ _ACEOF
|
|||
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files Makefile lib/Makefile lib/src/Makefile lib/clixon/Makefile apps/Makefile apps/cli/Makefile apps/backend/Makefile apps/netconf/Makefile apps/restconf/Makefile include/Makefile etc/Makefile etc/clixonrc example/Makefile extras/rpm/Makefile docker/Makefile datastore/Makefile datastore/text/Makefile util/Makefile yang/Makefile yang/clixon/Makefile yang/standard/Makefile doc/Makefile"
|
||||
ac_config_files="$ac_config_files Makefile lib/Makefile lib/src/Makefile lib/clixon/Makefile apps/Makefile apps/cli/Makefile apps/backend/Makefile apps/netconf/Makefile apps/restconf/Makefile include/Makefile etc/Makefile etc/clixonrc example/Makefile extras/rpm/Makefile docker/Makefile datastore/Makefile datastore/text/Makefile util/Makefile yang/Makefile yang/clixon/Makefile yang/standard/Makefile doc/Makefile test/Makefile"
|
||||
|
||||
cat >confcache <<\_ACEOF
|
||||
# This file is a shell script that caches the results of configure
|
||||
|
|
@ -5149,6 +5149,7 @@ do
|
|||
"yang/clixon/Makefile") CONFIG_FILES="$CONFIG_FILES yang/clixon/Makefile" ;;
|
||||
"yang/standard/Makefile") CONFIG_FILES="$CONFIG_FILES yang/standard/Makefile" ;;
|
||||
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
||||
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
|
||||
|
||||
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -249,5 +249,6 @@ AC_OUTPUT(Makefile
|
|||
yang/clixon/Makefile
|
||||
yang/standard/Makefile
|
||||
doc/Makefile
|
||||
test/Makefile
|
||||
)
|
||||
|
||||
|
|
|
|||
0
test/Jenkinsfile → test/jenkins/Jenkinsfile
vendored
0
test/Jenkinsfile → test/jenkins/Jenkinsfile
vendored
3
test/travis/before_script.sh
Normal file
3
test/travis/before_script.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
git clone https://github.com/olofhagsand/cligen.git
|
||||
(cd cligen && ./configure && make && sudo make install)
|
||||
Loading…
Add table
Add a link
Reference in a new issue