Browse Source

Add node -v for debug node

Shalom Yerushalmy 6 years ago
parent
commit
b241e607da
2 changed files with 3 additions and 6 deletions
  1. 2
    6
      Jenkinsfile
  2. 1
    0
      scripts/test-js.js

+ 2
- 6
Jenkinsfile View File

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

+ 1
- 0
scripts/test-js.js View File

@@ -14,6 +14,7 @@ const dirs = [
14 14
 run();
15 15
 
16 16
 function run() {
17
+  exec.execSync('node -v');
17 18
   const paths = _.chain(dirs).map((d) => `'${d}/**/*.[tj]s*'`).join(' ').value();
18 19
   exec.execSync(`tslint ${paths} ${fix} --format verbose`);
19 20
   assertAllTsFilesInSrc();