-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
42 lines (37 loc) · 1.79 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
matrix:
include:
- language: java
jdk: openjdk20
os: linux
env:
- ANDROID_HOME=$HOME/travis-tools/android
- ANDROID_SDK_ROOT=$HOME/travis-tools/android
before_install:
# PREPARE FOR ANDROID SDK SETUP
- mkdir -p $HOME/travis-tools/android && mkdir $HOME/.android && touch $HOME/.android/repositories.cfg
- cd $ANDROID_HOME && wget -q "https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip" -O commandlinetools.zip
- unzip -q commandlinetools.zip && cd cmdline-tools && cd $TRAVIS_BUILD_DIR
# SETUP PATH(s)
- export PATH=$ANDROID_HOME/cmdline-tools/bin/:$PATH
- export PATH=$ANDROID_HOME/emulator/:$PATH
- export PATH=$ANDROID_HOME/platform-tools/:$PATH
# https://github.com/travis-ci/travis-ci/issues/8667#issuecomment-366589908
install:
- true
# INSTALL REQUIRED ANDROID SDK TOOLS
- sdkmanager --sdk_root=$ANDROID_HOME --list | awk '/Installed/{flag=1; next} /Available/{flag=0} flag'
- yes | sdkmanager --sdk_root=$ANDROID_HOME --install "platform-tools" "platforms;android-34" "build-tools;34.0.0"
- sdkmanager --list --sdk_root=$ANDROID_HOME | awk '/Installed/{flag=1; next} /Available/{flag=0} flag'
script:
- ./gradlew android:build
- language: java
jdk: openjdk20
# https://github.com/travis-ci/travis-ci/issues/8667#issuecomment-366589908
install:
- true
script:
- ./gradlew shadowJar createExe
- language: objective-c
os: osx
osx_image: xcode14.2
script: git submodule init && git submodule update && cd iOS && xcodebuild clean build -project PMMonitor.xcodeproj -scheme PMMonitor CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO