Jenkinsfile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. pipeline {
  2. agent none
  3. stages {
  4. stage('Build') {
  5. parallel {
  6. stage('electron-osx-x64') {
  7. agent {
  8. label 'osx'
  9. }
  10. steps {
  11. timeout(60) {
  12. sh 'script/bootstrap.py --target_arch=x64 --dev'
  13. sh 'npm run lint'
  14. sh 'script/build.py -c D'
  15. sh 'script/test.py --ci --rebuild_native_modules'
  16. }
  17. }
  18. post {
  19. always {
  20. cleanWs()
  21. }
  22. }
  23. }
  24. stage('electron-mas-x64') {
  25. agent {
  26. label 'osx'
  27. }
  28. environment {
  29. MAS_BUILD = '1'
  30. }
  31. steps {
  32. timeout(60) {
  33. sh 'script/bootstrap.py --target_arch=x64 --dev'
  34. sh 'npm run lint'
  35. sh 'script/build.py -c D'
  36. sh 'script/test.py --ci --rebuild_native_modules'
  37. }
  38. }
  39. post {
  40. always {
  41. cleanWs()
  42. }
  43. }
  44. }
  45. }
  46. }
  47. }
  48. }