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

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

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