diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..2f09f7f --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,44 @@ +pipeline { + agent none + environment { + CONAN_USERNAME = "obogdan" + CONAN_PASSWORD = "c2bb9e81ad65edde80eefd2074e368dc1df8fa22" + CONAN_UPLOAD = "https://api.bintray.com/conan/obogdan/kde-test" + } + stages { + stage ('Build') { + environment { + CONAN_DOCKER_USE_SUDO = "False" + CONAN_USE_DOCKER = 1 + } + parallel { + stage("linux-GCC-7-x86-Release") { + agent { + label "linux" + } + environment { + CONAN_GCC_VERSIONS = "7" + CONAN_ARCHS = "x86" + CONAN_BUILD_TYPES = "Release" + } + steps { + sh "python3 build.py" + } + } + stage("linux-GCC-7-x86-Debug") { + agent { + label "linux" + } + environment { + CONAN_GCC_VERSIONS = "7" + CONAN_ARCHS = "x86" + CONAN_BUILD_TYPES = "Debug" + } + steps { + sh "python3 build.py" + } + } + } + } + } +} diff --git a/build.py b/build.py new file mode 100644 index 0000000..c788402 --- /dev/null +++ b/build.py @@ -0,0 +1,6 @@ +from cpt.packager import ConanMultiPackager + +if __name__ == "__main__": + builder = ConanMultiPackager() + builder.add_common_builds() + builder.run()