aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2019-08-02 15:07:53 +0200
committerOndrej Fabry <ofabry@cisco.com>2019-08-02 15:07:53 +0200
commitca6003af1a7e1adb7d45879c2d5038bc05c2bb1a (patch)
tree97a3620b0fc5c7a0ee032fe7d12d37b6303cfb01 /examples
parent639870b5083a1e66f4584ec7a5f30492fcdb7168 (diff)
Migrate to modules, refactor Makefile and use Travis for CI
- migrate to Go modules and remove vendor - refactor Makefile - add version package and store version - split extras from the rest - use travis for CI Change-Id: I81b35220653b0f7c9a0fcdd4c527d691ec1e96c1 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/binapi/VPP_VERSION1
-rw-r--r--examples/binapi/gen.go6
2 files changed, 2 insertions, 5 deletions
diff --git a/examples/binapi/VPP_VERSION b/examples/binapi/VPP_VERSION
deleted file mode 100644
index a9bd32f..0000000
--- a/examples/binapi/VPP_VERSION
+++ /dev/null
@@ -1 +0,0 @@
-19.04.1-rc0~5-g6f05f724f \ No newline at end of file
diff --git a/examples/binapi/gen.go b/examples/binapi/gen.go
index edaa703..2e86acd 100644
--- a/examples/binapi/gen.go
+++ b/examples/binapi/gen.go
@@ -1,17 +1,15 @@
package binapi
// Generate Go code from the VPP APIs located in the /usr/share/vpp/api directory.
-//go:generate -command binapigen binapi-generator --output-dir=. --include-services
+//go:generate -command binapigen binapi-generator --output-dir=. --include-services --continue-onerror
-// core
//go:generate binapigen --input-file=/usr/share/vpp/api/core/af_packet.api.json
//go:generate binapigen --input-file=/usr/share/vpp/api/core/interface.api.json
//go:generate binapigen --input-file=/usr/share/vpp/api/core/ip.api.json
//go:generate binapigen --input-file=/usr/share/vpp/api/core/memclnt.api.json
//go:generate binapigen --input-file=/usr/share/vpp/api/core/vpe.api.json
-// plugins
//go:generate binapigen --input-file=/usr/share/vpp/api/plugins/acl.api.json
//go:generate binapigen --input-file=/usr/share/vpp/api/plugins/memif.api.json
// VPP version
-//go:generate sh -ec "dpkg-query -f '$DOLLAR{Version}' -W vpp > VPP_VERSION"
+///go:generate sh -c "dpkg-query -f '$DOLLAR{Version}' -W vpp > VPP_VERSION"