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