image: openjdk:8-jdk
variables:
ANDROID_COMPILE_SDK: "29"
ANDROID_BUILD_TOOLS: "29.0.2"
ANDROID_SDK_TOOLS: "29.0.2"
before_script:
- apt -q update
- apt -q install -y wget tar unzip lib32stdc++6 lib32z1
- wget -q -O android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
- unzip -q android-sdk.zip
- echo y | tools/bin/sdkmanager "tools"
- echo y | tools/bin/sdkmanager "build-tools;29.0.2"
- echo y | tools/bin/sdkmanager "platform-tools" "platforms;android-29"
- echo y | tools/bin/sdkmanager "extras;google;m2repository"
- echo y | tools/bin/sdkmanager "extras;android;m2repository"
- export ANDROID_HOME=$PWD/
- export PATH=$PATH:$PWD/
- chmod +x ./gradlew
stages:
- test
- build
unitTests:
stage: test
script:
- ./gradlew test
build:
stage: build
only:
- master
script:
- ./gradlew assembleDebug
artifacts:
paths:
- app/build/outputs/
2020/02/10
2020/02/06
How to install Microsoft Azure CLI and Add Extension on Windows 10
1.Download azure-cli.msi and install
2.Open Windows PowerShell or Command Shell as administrator
3.Enter "az -h" to list command
4.Enter "az login
5.Enter "az extension list-available --output table" to list extension
6.Enter "az extension add --name azure-devops" to install target extension
7.Enter "az devops -h" to list command
2.Open Windows PowerShell or Command Shell as administrator
3.Enter "az -h" to list command
4.Enter "az login
-u 'username' -p 'password'
--allow-no-subscriptions" to login Microsoft Azure5.Enter "az extension list-available --output table" to list extension
6.Enter "az extension add --name azure-devops" to install target extension
7.Enter "az devops -h" to list command
訂閱:
文章 (Atom)