diff options
author | Kim Hagen <kim.sidney@gmail.com> | 2019-05-22 13:47:34 +0200 |
---|---|---|
committer | Kim Hagen <kim.sidney@gmail.com> | 2019-05-22 13:47:34 +0200 |
commit | d24348253f787eef11e88ebfd0032496428504f0 (patch) | |
tree | b094ea2c5cd0672b6c70be40620a1cf3254df9e9 /Jenkinsfile | |
parent | 615191b2ed394d815f079513b562eaa6de1602e1 (diff) | |
download | vyos-1x-d24348253f787eef11e88ebfd0032496428504f0.tar.gz vyos-1x-d24348253f787eef11e88ebfd0032496428504f0.zip |
add tests to Jenkinsfile
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 0319b9281..e8c363bc0 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 |