-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Uilian Ries <[email protected]>
- Loading branch information
1 parent
8cefc0c
commit 3ddb517
Showing
9 changed files
with
25 additions
and
146 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
try { | ||
node("Linux") { | ||
List pyVersions = ['2.7', '3.7'] | ||
List conanVersions = ['conan-dev', 'conan-latest'] | ||
|
||
stage('CPT Linux stage') { | ||
sh 'apt-get update' | ||
// To build some deps from sources it needs pythonXX-dev | ||
sh 'apt-get -y install python3-venv python3.7-venv' | ||
sh 'pip install -r cpt/requirements_test.txt' | ||
|
||
def envs = sh(returnStdout: true, script: "tox -l").trim().split('\n') | ||
def cmds = envs.collectEntries({ tox_env -> | ||
[tox_env, { | ||
sh "tox --parallel--safe-build -vve $tox_env" | ||
}] | ||
}) | ||
parallel(cmds) | ||
} | ||
} | ||
} | ||
catch(e){ | ||
echo "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'" | ||
throw e | ||
} |