Browse Source

fixed travis

Daniel Zlotin 7 years ago
parent
commit
d589b9071a
3 changed files with 17 additions and 19 deletions
  1. 1
    1
      .travis.yml
  2. 0
    18
      scripts/travis.js
  3. 16
    0
      scripts/travis.sh

+ 1
- 1
.travis.yml View File

@@ -33,7 +33,7 @@ install:
33 33
 
34 34
 script:
35 35
   - set -e
36
-  - node ./scripts/travis.js
36
+  - ./scripts/travis.sh
37 37
   - set +e
38 38
 
39 39
 after_script:

+ 0
- 18
scripts/travis.js View File

@@ -1,18 +0,0 @@
1
-const exec = require('shell-utils').exec;
2
-
3
-function travisRun(cmd) {
4
-  exec.execSync(`echo "travis_fold:start:${cmd}"`);
5
-  exec.execSync(cmd);
6
-  exec.execSync(`echo "travis_fold:end:${cmd}"`);
7
-}
8
-
9
-function run() {
10
-  travisRun(`yarn install`);
11
-  travisRun(`yarn run lint`);
12
-  travisRun(`yarn run test-js`);
13
-  travisRun(`yarn run test-android`);
14
-  travisRun(`yarn run test-ios`);
15
-  travisRun(`yarn run release`);
16
-}
17
-
18
-run();

+ 16
- 0
scripts/travis.sh View File

@@ -0,0 +1,16 @@
1
+#!/bin/bash -e
2
+
3
+run_f () {
4
+  cmd="${1}"
5
+
6
+  echo "travis_fold:start:$cmd"
7
+  ($cmd)
8
+  echo "travis_fold:end:$cmd"
9
+}
10
+
11
+run_f "yarn install"
12
+run_f "yarn run lint"
13
+run_f "yarn run test-js"
14
+run_f "yarn run test-android"
15
+run_f "yarn run test-ios"
16
+run_f "yarn run release"