Skip to content

Commit 9ec036d

Browse files
authored
Android Build - CI (#15)
Android build
1 parent aaa5e14 commit 9ec036d

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

.travis.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,37 @@ branches:
33
only:
44
- master
55
- dev
6-
before_install:
7-
- npm i -g npm@6.7.0
8-
- npm i -g yarn@1.9.2
96
jobs:
107
include:
118
- stage: Test and lint ✅
9+
before_install:
10+
- npm i -g npm@6.7.0
11+
- npm i -g yarn@1.9.2
1212
language: node_js
1313
node_js: 8.11.2
1414
install: yarn
1515
script: npm run lint
16+
- stage: Build Android 🤖
17+
before_install:
18+
- sudo apt-get install build-essential checkinstall && sudo apt-get install libssl-dev
19+
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
20+
- source ~/.profile
21+
- nvm install 8.11.2
22+
- npm i -g yarn@1.9.2
23+
language: android
24+
android:
25+
components:
26+
- tools
27+
- platform-tools
28+
# - build-tools-26.0.2
29+
- build-tools-27.0.3
30+
# - android-26
31+
- android-27
32+
- addon-google_apis-google-26
33+
sudo: true
34+
install:
35+
- yarn install
36+
script:
37+
- cd /usr/local/android-sdk/tools/bin
38+
- yes | ./sdkmanager --update
39+
- cd - && cd android && ./gradlew assembleRelease && cd ..

0 commit comments

Comments
 (0)