Update Jenkinsfile (#1282)

* Update Jenkinsfile

Specify build nodes using granular tags

* Update Jenkinsfile

go back to building react tests on the vegas nodes
This commit is contained in:
Yavor Georgiev 2017-09-05 15:01:55 +01:00 committed by GitHub
parent 49886528ac
commit 5353964804
1 changed files with 4 additions and 18 deletions

22
Jenkinsfile vendored
View File

@ -68,8 +68,8 @@ stage('build') {
macos_node_release: doMacBuild('node Release'),
//macos_realmjs_debug: doMacBuild('realmjs Debug'),
//macos_realmjs_release: doMacBuild('realmjs Release'),
macos_react_tests_debug: doReactBuild('react-tests Debug'),
macos_react_tests_release: doReactBuild('react-tests Release'),
macos_react_tests_debug: doMacBuild('react-tests Debug'),
macos_react_tests_release: doMacBuild('react-tests Release'),
macos_react_example_debug: doMacBuild('react-example Debug'),
macos_react_example_release: doMacBuild('react-example Release'),
//android_react_tests: doAndroidBuild('react-tests-android', {
@ -188,26 +188,12 @@ def doMacBuild(target, postStep = null) {
}
}
def doReactBuild(target, postStep = null) {
return {
node('xamarin-mac') {
try {
lock("${env.NODE_NAME} iOS Simulator") {
doInside("./scripts/test.sh", target, postStep)
}
} finally {
deleteDir()
}
}
}
}
def doWindowsBuild() {
return {
node('windows') {
node('windows && nodejs') {
unstash 'source'
try {
bat 'npm install --build-from-source'
bat 'npm install --build-from-source=realm'
dir('tests') {
bat 'npm install'
bat 'npm run test'