# SPDX-FileCopyrightText: 2014, microg Project Team
# SPDX-License-Identifier: CC0-1.0

language: android
sudo: false
before_script:
  - echo sdk.dir $ANDROID_HOME > local.properties
script:
  - jdk_switcher use oraclejdk8
  - export TERM=dumb
  - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m"
  - ./gradlew build
android:
  components:
  - tools
  - platform-tools
  - build-tools-29.0.3
  - android-29
  - extra-android-m2repository

# SPDX-FileCopyrightText: 2014, microg Project Team
# SPDX-License-Identifier: CC0-1.0

jobs:
  include:
    - name: "Build"
      language: android
      android:
        components:
          - tools
          - build-tools-29.0.3
          - android-29
      script:
        - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m"
        - export TERM=dumb
        - echo sdk.dir $ANDROID_HOME > local.properties
        - jdk_switcher use oraclejdk8
        - ./gradlew build
    - name: "REUSE lint"
      language: minimal
      script:
        - docker pull fsfe/reuse:latest
        - docker run -v ${TRAVIS_BUILD_DIR}:/data fsfe/reuse:latest lint

Add REUSE lint to Travis
Add REUSE lint to Travis
