--- /dev/null
+FROM ubuntu:16.04
+
+RUN apt-get update && apt-get -y install git make python python3 \
+ virtualenv libcurl4-gnutls-dev libgnutls-dev python-pip python3-pip \
+ debhelper python-stdeb apt-utils
-node {
- stage("Checkout") {
- checkout scm
+pipeline {
+ agent {
+ dockerfile true
}
- stage("Test") {
- sh 'make test'
- }
- stage("Build") {
- sh 'make package'
- stash name: "deb-files", includes: "deb_dist/*.deb"
- }
- stage("Repo Component") {
- releaseDir = "ReleaseTWO"
- unstash "deb-files"
- sh '''
- mkdir -p pool/osmclient
- mv deb_dist/*.deb pool/osmclient/
- mkdir -p dists/${releaseDir}/unstable/osmclient/binary-amd64/
- apt-ftparchive packages pool/osmclient > dists/${releaseDir}/unstable/osmclient/binary-amd64/Packages
- gzip -9fk dists/${releaseDir}/unstable/osmclient/binary-amd64/Packages
- '''
- archiveArtifacts artifacts: "dists/**,pool/osmclient/*.deb"
+ stages {
+ stage("Checkout") {
+ steps {
+ checkout scm
+ }
+ }
+ stage("Test") {
+ steps {
+ sh 'make -j4 test'
+ }
+ }
+ stage("Build") {
+ steps {
+ sh 'make package'
+ stash name: "deb-files", includes: "deb_dist/*.deb"
+ }
+ }
+ stage("Repo Component") {
+ steps {
+ unstash "deb-files"
+ sh '''
+ mkdir -p pool/osmclient
+ mv deb_dist/*.deb pool/osmclient/
+ mkdir -p dists/unstable/osmclient/binary-amd64/
+ apt-ftparchive packages pool/osmclient > dists/unstable/osmclient/binary-amd64/Packages
+ gzip -9fk dists/unstable/osmclient/binary-amd64/Packages
+ '''
+ archiveArtifacts artifacts: "dists/**,pool/osmclient/*.deb"
+ }
+ }
}
}
install_requires=[
'Click', 'prettytable', 'pyyaml', 'pycurl'
],
+ test_suite='nose.collector',
entry_points='''
[console_scripts]
osm=osmclient.scripts.osm:cli