summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2019-05-22 13:46:28 +0200
committerKim Hagen <kim.sidney@gmail.com>2019-05-22 13:46:28 +0200
commitbf0f721432fa05bbc7058a0b43e2acf4ad1f30e3 (patch)
tree0e92867d37c2aeaa2dabf382ef70e929265cfd52 /Jenkinsfile
parent29cb181b69b7156e3f2f29fb1e78999048a81a7f (diff)
downloadvyos-1x-bf0f721432fa05bbc7058a0b43e2acf4ad1f30e3.tar.gz
vyos-1x-bf0f721432fa05bbc7058a0b43e2acf4ad1f30e3.zip
add tests to Jenkinsfile
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 563ead229..aac051799 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -16,6 +16,10 @@ pipeline {
sh '''#!/bin/bash
git clone --single-branch --branch $GIT_BRANCH $GIT_URL $BUILD_NUMBER
cd $BUILD_NUMBER
+sudo pip3 uninstall vyos -y || true
+sudo pip3 install -r test-requirements.txt
+python3 -m "pylint" src -r n --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" > pylint-report.txt || true
+make test
sudo apt-get -o Acquire::Check-Valid-Until=false update
sudo mk-build-deps -i -r -t \'apt-get --no-install-recommends -yq\' debian/control
dpkg-buildpackage -b -us -uc -tc
@@ -36,6 +40,10 @@ mv ../*.deb /tmp/$GIT_BRANCH/packages/'''
sh '''#!/bin/bash
git clone --single-branch --branch $GIT_BRANCH $GIT_URL $BUILD_NUMBER
cd $BUILD_NUMBER
+sudo pip3 uninstall vyos -y || true
+sudo pip3 install -r test-requirements.txt
+python3 -m "pylint" src -r n --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" > pylint-report.txt || true
+make test
sudo apt-get -o Acquire::Check-Valid-Until=false update
sudo mk-build-deps -i -r -t \'apt-get --no-install-recommends -yq\' debian/control
dpkg-buildpackage -b -us -uc -tc
@@ -56,6 +64,10 @@ mv ../*.deb /tmp/$GIT_BRANCH/packages/'''
sh '''#!/bin/bash
git clone --single-branch --branch $GIT_BRANCH $GIT_URL $BUILD_NUMBER
cd $BUILD_NUMBER
+sudo pip3 uninstall vyos -y || true
+sudo pip3 install -r test-requirements.txt
+python3 -m "pylint" src -r n --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" > pylint-report.txt || true
+make test
sudo apt-get -o Acquire::Check-Valid-Until=false update
sudo mk-build-deps -i -r -t \'apt-get --no-install-recommends -yq\' debian/control
dpkg-buildpackage -b -us -uc -tc