react-native-navigation的迁移库

Jenkinsfile 808B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/usr/bin/env bash
  2. pipeline {
  3. agent any
  4. stages {
  5. stage('Install npm packages') {
  6. steps {
  7. ansiColor('xterm') {
  8. sh '''#!/bin/bash -ex
  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. npm run test-js'''
  20. }
  21. }
  22. stage('Run IOS tests') {
  23. steps {
  24. ansiColor('xterm') {
  25. sh '''#!/bin/bash
  26. npm run test-unit-ios -- --release
  27. npm run test-e2e-ios -- --release'''
  28. }
  29. }
  30. }
  31. stage('Run android tests') {
  32. steps {
  33. sh '''#!/bin/bash
  34. npm run test-unit-android -- --release
  35. npm run test-e2e-android -- --release'''
  36. }
  37. }
  38. }
  39. }
  40. }
  41. }