Kaynağa Gözat

fix travis deploy

Daniel Zlotin 7 yıl önce
ebeveyn
işleme
f01a05f86f
4 değiştirilmiş dosya ile 20 ekleme ve 26 silme
  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 Dosyayı Görüntüle

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

+ 0
- 4
scripts/travis.android.sh Dosyayı Görüntüle

@@ -1,4 +0,0 @@
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 Dosyayı Görüntüle

@@ -1,4 +0,0 @@
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 Dosyayı Görüntüle

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