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