Commit b5d7ac7f authored by Michele Carignani's avatar Michele Carignani
Browse files

scripts for automated YANG validation and HTML generation in Docker

  - patch set 2 fixes exit code of script
  - patch set 3 adds img version and renames output

Change-Id: I8d01d96a44cad9eb038c8b76f008611e929c4006
parent 0b7c04af
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
*.html

.jenkins.sh

0 → 100644
+18 −0
Original line number Diff line number Diff line
#!/bin/bash
#
# Copyright (c) ETSI 2018
# Realeased under the ETSI Software License
#
# https://forge.etsi.org/etsi-software-license

YANG_MODULES="yang/yang/*"
OUTPUT="etsi-nfv.html"
IMG_NAME="nfv-sol6"
VERSION=1.0
IMG="$IMG_NAME:$VERSION"

docker build --tag "$IMG" .
docker run "$IMG" "/bin/sh" -c "pyang -f jstree $YANG_MODULES" > "$OUTPUT"

exit $([ -f "$OUTPUT" ])

Dockerfile

0 → 100644
+3 −0
Original line number Diff line number Diff line
FROM forge-pyang

ADD src /yang