|
@@ -5,12 +5,12 @@ env:
|
5
|
5
|
jobs:
|
6
|
6
|
include:
|
7
|
7
|
|
8
|
|
- # - stage: test
|
9
|
|
- # env: TYPE=js
|
10
|
|
- # os: linux
|
11
|
|
- # language: generic
|
12
|
|
- # script:
|
13
|
|
- # - ./scripts/travis-fold.sh "npm run test-js"
|
|
8
|
+ - stage: test
|
|
9
|
+ env: TYPE=js
|
|
10
|
+ os: linux
|
|
11
|
+ language: generic
|
|
12
|
+ script:
|
|
13
|
+ - ./scripts/travis-fold.sh "npm run test-js"
|
14
|
14
|
|
15
|
15
|
- stage: test
|
16
|
16
|
env: TYPE=iOS
|
|
@@ -20,37 +20,36 @@ jobs:
|
20
|
20
|
before_install:
|
21
|
21
|
- source ./scripts/env/env.ios.sh
|
22
|
22
|
script:
|
23
|
|
- - brew install ffmpeg --with-ffplay
|
24
|
|
- # - ./scripts/travis-fold.sh "npm run test-unit-ios -- --release"
|
|
23
|
+ - ./scripts/travis-fold.sh "npm run test-unit-ios -- --release"
|
25
|
24
|
- ./scripts/travis-fold.sh "npm run test-e2e-ios -- --release"
|
26
|
25
|
|
27
|
|
- # - stage: test
|
28
|
|
- # env: TYPE=Android
|
29
|
|
- # os: linux
|
30
|
|
- # jdk: oraclejdk8
|
31
|
|
- # language: java
|
32
|
|
- # before_install:
|
33
|
|
- # - source ./scripts/env/env.android.sh
|
34
|
|
- # script:
|
35
|
|
- # - ./scripts/travis-fold.sh "npm run test-unit-android -- --release"
|
36
|
|
- # - ./scripts/travis-fold.sh "npm run test-e2e-android -- --release"
|
37
|
|
- # before_cache:
|
38
|
|
- # - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
39
|
|
- # - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
40
|
|
- # cache:
|
41
|
|
- # directories:
|
42
|
|
- # - $HOME/.m2
|
43
|
|
- # - $HOME/.gradle/caches/
|
44
|
|
- # - $HOME/.gradle/wrapper/
|
45
|
|
- # - $HOME/.android/build-cache
|
|
26
|
+ - stage: test
|
|
27
|
+ env: TYPE=Android
|
|
28
|
+ os: linux
|
|
29
|
+ jdk: oraclejdk8
|
|
30
|
+ language: java
|
|
31
|
+ before_install:
|
|
32
|
+ - source ./scripts/env/env.android.sh
|
|
33
|
+ script:
|
|
34
|
+ - ./scripts/travis-fold.sh "npm run test-unit-android -- --release"
|
|
35
|
+ - ./scripts/travis-fold.sh "npm run test-e2e-android -- --release"
|
|
36
|
+ before_cache:
|
|
37
|
+ - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
38
|
+ - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
|
39
|
+ cache:
|
|
40
|
+ directories:
|
|
41
|
+ - $HOME/.m2
|
|
42
|
+ - $HOME/.gradle/caches/
|
|
43
|
+ - $HOME/.gradle/wrapper/
|
|
44
|
+ - $HOME/.android/build-cache
|
46
|
45
|
|
47
|
|
- # - stage: deploy
|
48
|
|
- # if: NOT type = pull_request
|
49
|
|
- # env: TYPE=deploy
|
50
|
|
- # os: linux
|
51
|
|
- # language: generic
|
52
|
|
- # script:
|
53
|
|
- # - ./scripts/travis-fold.sh "npm run release"
|
|
46
|
+ - stage: deploy
|
|
47
|
+ if: NOT type = pull_request
|
|
48
|
+ env: TYPE=deploy
|
|
49
|
+ os: linux
|
|
50
|
+ language: generic
|
|
51
|
+ script:
|
|
52
|
+ - ./scripts/travis-fold.sh "npm run release"
|
54
|
53
|
|
55
|
54
|
branches:
|
56
|
55
|
only:
|