react-native-navigation的迁移库

Jenkinsfile 930B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. pipeline {
  2. agent any
  3. stages {
  4. stage('Install npm packages') {
  5. steps {
  6. ansiColor('xterm') {
  7. sh '''#!/bin/bash -ex
  8. source ~/.bashrc
  9. npm install
  10. npm run clean'''
  11. }
  12. }
  13. }
  14. stage('Run All Tests') {
  15. parallel {
  16. stage('Run test-js') {
  17. steps {
  18. sh '''#!/bin/bash
  19. source ~/.bashrc
  20. npm run test-js'''
  21. }
  22. }
  23. stage('Run IOS tests') {
  24. steps {
  25. sh '''#!/bin/bash
  26. source ~/.bashrc
  27. npm run test-unit-ios -- --release
  28. npm run test-e2e-ios -- --release'''
  29. }
  30. }
  31. stage('Run android tests') {
  32. steps {
  33. sh '''#!/bin/bash
  34. source ~/.bashrc
  35. npm run test-unit-android -- --release
  36. npm run test-e2e-android -- --release'''
  37. }
  38. }
  39. }
  40. }
  41. }
  42. }