|
@@ -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"
|