Add fixes for voltha-protos testing
Add protoc-gen-go for Go protobuf generation
Set PATH and GOPATH in python-unit template
Change-Id: Ibe92ea06e9f5f6ff4d60455a640e3f5551cbee20
diff --git a/jjb/pypi-publish.yaml b/jjb/pypi-publish.yaml
index 0f6aca9..77cbfe6 100644
--- a/jjb/pypi-publish.yaml
+++ b/jjb/pypi-publish.yaml
@@ -5,7 +5,7 @@
id: pypi-publish
name: 'pypi-publish_{project}'
description: |
- Created by {id} job-template from ci-management/jjb/pypi-publish.yaml
+ Created by {id} job-template from ci-management/jjb/pypi-publish.yaml<br/>
When a patch is merged, publish python modules to PyPI
triggers:
diff --git a/jjb/python-unit.yaml b/jjb/python-unit.yaml
index a11b533..46cf357 100644
--- a/jjb/python-unit.yaml
+++ b/jjb/python-unit.yaml
@@ -6,7 +6,8 @@
name: 'verify_{project}_unit-test'
description: |
- Created by {id} job-template from ci-management/jjb/xos-unit.yaml
+ Created by {id} job-template from ci-management/jjb/python-unit.yaml<br/>
+ Unit tests for Python (or Go w/Makefile) projects
triggers:
- cord-infra-gerrit-trigger-patchset:
@@ -44,6 +45,11 @@
#!/usr/bin/env bash
set -eux -o pipefail
+ # setup for go-based testing
+ mkdir -p ~/go/src
+ export GOPATH=~/go
+ export PATH=$PATH:/usr/lib/go-1.10/bin:$GOPATH/bin
+
if [ -f 'Makefile' ]; then
echo "Makefile found, running 'make test'"
make test