Browse Source

Use GitHub CI

master
Marvin W 7 months ago
parent
commit
bc93d81064
No known key found for this signature in database
GPG Key ID: 72E9235DB996F2A
  1. 16
      .github/workflows/build.yml
  2. 11
      .github/workflows/reuse.yml
  3. 23
      .travis.yml

16
.github/workflows/build.yml

@ -0,0 +1,16 @@
# SPDX-FileCopyrightText: 2021, microG Project Team
# SPDX-License-Identifier: CC0-1.0
name: Build
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- run: ./gradlew --no-daemon build
env:
TERM: dumb
JAVA_OPTS: -Xmx2048m

11
.github/workflows/reuse.yml

@ -0,0 +1,11 @@
# SPDX-FileCopyrightText: 2021, microG Project Team
# SPDX-License-Identifier: CC0-1.0
name: REUSE Compliance Check
on: [pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: fsfe/[email protected]

23
.travis.yml

@ -1,23 +0,0 @@
# 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
Loading…
Cancel
Save