GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Add GitLab CI

parent 8dbe93c3
Pipeline #690 passed with stage
in 21 minutes and 12 seconds
build:
image: debian:stable
variables:
DEBIAN_FRONTEND: noninteractive
OPENJDK_SNAPSHOT_VERSION: "20191201T212855Z"
OPENJDK_DEB_VERSION: "8u232-b09-1~deb9u1_amd64"
ANDROID_CLI_TOOLS: "6609375"
ANDROID_COMPILE_SDK: "28"
ANDROID_BUILD_TOOLS: "28.0.3"
MAVEN_REPOSITORIES: "${CI_PROJECT_DIR}/gradle_storage"
GRADLE_MAVEN_REPOSITORIES: "file://${MAVEN_REPOSITORIES}"
before_script:
# Copied from taskcluster/docker/recipes/prepare_openjdk.sh
- if grep -q ^10\\. /etc/debian_version; then sed s/stable/oldstable/ /etc/apt/sources.list | tee /etc/apt/sources.list.d/oldstable.list; fi
# Prepare our Debian environment.
- apt-get update -qq
- apt-get upgrade -qy
# Install needed packages from Debian.
- apt-get install -qy --fix-missing wget tar unzip lib32stdc++6 lib32z1 bzip2 openjdk-8-jdk-headless
#- ./taskcluster/scripts/toolchain/android-gradle-dependencies.sh
# Install the Android SDK Tools.
- wget --quiet --output-document=android-cli-tools.zip https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_CLI_TOOLS}_latest.zip
- unzip -d cmdline-tools android-cli-tools.zip
- echo y | cmdline-tools/tools/bin/sdkmanager --install "platforms;android-${ANDROID_COMPILE_SDK}" > /dev/null
- echo y | cmdline-tools/tools/bin/sdkmanager --install "platform-tools" > /dev/null
- echo y | cmdline-tools/tools/bin/sdkmanager --install "build-tools;${ANDROID_BUILD_TOOLS}" > /dev/null
# Install the Android NDK.
- echo y | cmdline-tools/tools/bin/sdkmanager ndk-bundle > /dev/null
# Accept all the licenses.
- set +o pipefail
- yes | cmdline-tools/tools/bin/sdkmanager --licenses
- set -o pipefail
# Create local.properties file.
- echo "sdk.dir=$PWD" > local.properties
script:
# The full test-suite takes more than 1 hour :/
# - ./gradlew test
- ./config/pre-push-recommended.sh
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment