Browse Source

fix travis deploy

Daniel Zlotin 7 years ago
parent
commit
f01a05f86f
4 changed files with 20 additions and 26 deletions
  1. 20
    15
      .travis.yml
  2. 0
    4
      scripts/travis.android.sh
  3. 0
    4
      scripts/travis.ios.sh
  4. 0
    3
      scripts/travis.js.sh

+ 20
- 15
.travis.yml View File

1
-os: linux
2
-language: generic
3
-
4
 env:
1
 env:
5
   global:
2
   global:
6
     - RCT_NO_LAUNCH_PACKAGER=true
3
     - RCT_NO_LAUNCH_PACKAGER=true
7
 
4
 
8
 jobs:
5
 jobs:
9
   include:
6
   include:
7
+
10
     - stage: test
8
     - stage: test
11
-      env:
12
-      - TYPE=js
9
+      env: TYPE=js
13
       os: linux
10
       os: linux
14
       language: generic
11
       language: generic
15
       script:
12
       script:
16
-        - ./scripts/travis.js.sh
13
+        - ./scripts/travis-fold.sh "npm run test-js"
14
+
17
     - stage: test
15
     - stage: test
18
-      env:
19
-      - TYPE=iOS
16
+      env: TYPE=iOS
20
       os: osx
17
       os: osx
21
       osx_image: xcode9
18
       osx_image: xcode9
22
       language: objective-c
19
       language: objective-c
23
-      install:
20
+      before_install:
24
         - source ./scripts/env/env.ios.sh
21
         - source ./scripts/env/env.ios.sh
25
       script:
22
       script:
26
-        - ./scripts/travis.ios.sh
23
+        - ./scripts/travis-fold.sh "npm run test-unit-ios -- --release"
24
+        - ./scripts/travis-fold.sh "npm run test-e2e-ios -- --release"
25
+
27
     - stage: test
26
     - stage: test
28
-      env:
29
-      - TYPE=Android
27
+      env: TYPE=Android
30
       os: linux
28
       os: linux
31
       jdk: oraclejdk8
29
       jdk: oraclejdk8
32
       language: java
30
       language: java
33
-      install:
31
+      before_install:
34
         - source ./scripts/env/env.android.sh
32
         - source ./scripts/env/env.android.sh
35
       script:
33
       script:
36
-        - ./scripts/travis.android.sh
34
+        - ./scripts/travis-fold.sh "npm run test-unit-android -- --release"
35
+        - ./scripts/travis-fold.sh "npm run test-e2e-android -- --release"
37
       before_cache:
36
       before_cache:
38
         - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
37
         - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
39
         - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
38
         - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
43
           - $HOME/.gradle/caches/
42
           - $HOME/.gradle/caches/
44
           - $HOME/.gradle/wrapper/
43
           - $HOME/.gradle/wrapper/
45
           - $HOME/.android/build-cache
44
           - $HOME/.android/build-cache
45
+
46
     - stage: deploy
46
     - stage: deploy
47
+      env: TYPE=deploy
48
+      os: linux
49
+      language: generic
47
       script:
50
       script:
48
           - ./scripts/travis-fold.sh "npm run release"
51
           - ./scripts/travis-fold.sh "npm run release"
49
 
52
 
52
   - master
55
   - master
53
   - v2
56
   - v2
54
 
57
 
55
-before_install:
58
+install:
56
   - nvm install 8
59
   - nvm install 8
60
+  - ./scripts/travis-fold.sh "npm install"
61
+  - ./scripts/travis-fold.sh "npm run clean"
57
 
62
 
58
 after_script:
63
 after_script:
59
   - echo "BUILD FINISHED"
64
   - echo "BUILD FINISHED"

+ 0
- 4
scripts/travis.android.sh View File

1
-./scripts/travis-fold.sh "npm install"
2
-./scripts/travis-fold.sh "npm run clean"
3
-./scripts/travis-fold.sh "npm run test-unit-android -- --release"
4
-./scripts/travis-fold.sh "npm run test-e2e-android -- --release"

+ 0
- 4
scripts/travis.ios.sh View File

1
-./scripts/travis-fold.sh "npm install"
2
-./scripts/travis-fold.sh "npm run clean"
3
-./scripts/travis-fold.sh "npm run test-unit-ios -- --release"
4
-./scripts/travis-fold.sh "npm run test-e2e-ios -- --release"

+ 0
- 3
scripts/travis.js.sh View File

1
-./scripts/travis-fold.sh "npm install"
2
-./scripts/travis-fold.sh "npm run clean"
3
-./scripts/travis-fold.sh "npm run test-js"