Skip to content

Commit 5f52c94

Browse files
author
qianlq
committed
2 parents 8ce585c + 291c980 commit 5f52c94

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: android
2+
jdk: oraclejdk8
3+
sudo: false
4+
5+
android:
6+
components:
7+
- tools
8+
- platform-tools
9+
- build-tools-26.0.2
10+
- android-26
11+
12+
licenses:
13+
- 'android-sdk-license-.+'
14+
15+
notifications:
16+
email: false
17+
18+
install:
19+
- ./gradlew build
20+
21+
script:
22+
- ./ciPublish.sh

ciPublish.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -ev
3+
4+
if [ "$CI" == "true" ] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
5+
echo "Running a non-PR build on master - publish artifact"
6+
./gradlew publishApkRelease
7+
else
8+
echo "The artifact will not be published"
9+
fi

0 commit comments

Comments
 (0)