-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (76 loc) · 2.36 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
branches:
only:
- master
matrix:
include:
- os: linux
sudo: true
name: generate
language: node_js
dist: xenial
node_js:
- 11
addons:
apt:
update: true
sources:
- sourceline: deb https://dl.yarnpkg.com/debian/ stable main
key_url: https://dl.yarnpkg.com/debian/pubkey.gpg
- sourceline: deb https://dl.google.com/linux/deb/ stable main
key_url: https://dl.google.com/linux/linux_signing_key.pub
packages:
- yarn
- sshpass
cache:
npm: false
- os: linux
sudo: true
name: build
language: android
dist: xenial
android:
components:
- platform-tools
- tools
- build-tools-26.0.2
- android-27
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
addons:
apt:
update: true
sources:
- sourceline: deb https://dl.yarnpkg.com/debian/ stable main
key_url: https://dl.yarnpkg.com/debian/pubkey.gpg
- sourceline: deb https://dl.google.com/linux/deb/ stable main
key_url: https://dl.google.com/linux/linux_signing_key.pub
packages:
- yarn
- tree
- gradle
- sshpass
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
cache:
npm: false
before_install:
- export PATH=$HOME/.yarn/bin:$PATH
- if [[ "$TRAVIS_JOB_NAME" == "build" ]]; then nvm install 11 ; fi
install:
- if [[ "$TRAVIS_JOB_NAME" == "generate" ]]; then sh $TRAVIS_BUILD_DIR/.travis/generate-install.sh ; fi
- if [[ "$TRAVIS_JOB_NAME" == "build" ]]; then sh $TRAVIS_BUILD_DIR/.travis/build-install.sh ; fi
before_script:
- export SSHPASS=$ALIYUN_PASS
- if [[ "$TRAVIS_JOB_NAME" == "generate" ]]; then sh $TRAVIS_BUILD_DIR/.travis/generate-before_script.sh ; fi
script:
- if [[ "$TRAVIS_JOB_NAME" == "generate" ]]; then sh $TRAVIS_BUILD_DIR/.travis/generate-script.sh ; fi
- if [[ "$TRAVIS_JOB_NAME" == "build" ]]; then sh $TRAVIS_BUILD_DIR/.travis/build-script.sh ; fi
after_script:
- if [[ "$TRAVIS_JOB_NAME" == "generate" ]]; then sh $TRAVIS_BUILD_DIR/.travis/generate-after_script.sh ; fi
- if [[ "$TRAVIS_JOB_NAME" == "build" ]]; then sh $TRAVIS_BUILD_DIR/.travis/build-after_script.sh ; fi
env:
global:
- LANG=zh_CN.UTF-8