Browse Source

Added new jenkins file for jenkins pipleine

Shalom Yerushalmy 6 years ago
parent
commit
0a37171f9b
1 changed files with 39 additions and 0 deletions
  1. 39
    0
      Jenkinsfile

+ 39
- 0
Jenkinsfile View File

@@ -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
+}