diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..18496d7 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,41 @@ +pipeline { + agent any + stages { + stage('Build') { + parallel { + stage('Build Linux') { + agent { + docker { + image 'python:alpine' + label 'docker' + alwaysPull true + } + } + steps { + echo "Building for Linux" + sh "python ./build.py" + echo "Testing for Linux" + sh ". ./env.sh; dobuild; dotest_ci" + sh "mv NewLang.pyz NewLang.linux.pyz" + archiveArtifacts artifacts: 'NewLang.linux.pyz', fingerprint: true + cleanWs() + } + } + stage('Build Windows') { + agent { + label 'windows' + } + steps { + echo "Building for Windows" + pwsh "python .\\build.py" + echo "Testing for Windows" + pwsh ".\\env.ps1; dobuild; dotest_ci" + pwsh "mv NewLang.pyz NewLang.windows.pyz" + archiveArtifacts artifacts: 'NewLang.windows.pyz', fingerprint: true + cleanWs() + } + } + } + } + } +}