Procházet zdrojové kódy

Added new jenkins file for jenkins pipleine

Shalom Yerushalmy před 6 roky
rodič
revize
0a37171f9b
1 změnil soubory, kde provedl 39 přidání a 0 odebrání
  1. 39
    0
      Jenkinsfile

+ 39
- 0
Jenkinsfile Zobrazit soubor

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