diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..33889628 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,30 @@ +version: 2 +jobs: + build: + working_directory: ~/code + docker: + - image: circleci/android:api-28-alpha + environment: + JVM_OPTS: -Xmx3200m + steps: + - checkout + - run: git submodule sync + - run: git submodule update --init + - restore_cache: + key: jars-{{ checksum "build.gradle" }} + - run: + name: Download Dependencies + command: ./gradlew androidDependencies + - save_cache: + paths: + - ~/.gradle + key: jars-{{ checksum "build.gradle" }} + - run: + name: Run Build and Tests + command: ./gradlew assembleDebug check + - store_artifacts: + path: mobile/build/outputs/apk + destination: apk + - store_artifacts: + path: mobile/build/reports + destination: reports diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7108058e..00000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: android - -jdk: - - oraclejdk8 - -before_cache: - - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ - -cache: - directories: - - $HOME/.gradle/caches/ - - $HOME/.gradle/wrapper/ - -install: - - pushd $ANDROID_HOME - - rm -rf tools - - wget -q https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip -O tools.zip - - unzip -q tools.zip - - popd - - touch $HOME/.android/repositories.cfg - - yes | sdkmanager --licenses > /dev/null - -script: - - ./gradlew assembleDebug check diff --git a/README.md b/README.md index 7e7d21de..ba22217b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # VPN Hotspot -[![Build Status](https://api.travis-ci.org/Mygod/VPNHotspot.svg)](https://travis-ci.org/Mygod/VPNHotspot) +[![CircleCI](https://circleci.com/gh/Mygod/VPNHotspot.svg?style=svg)](https://circleci.com/gh/Mygod/VPNHotspot) [![API](https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=21) [![Releases](https://img.shields.io/github/downloads/Mygod/VPNHotspot/total.svg)](https://github.com/Mygod/VPNHotspot/releases) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/e70e52b1a58045819b505c09edcae816)](https://www.codacy.com/app/Mygod/VPNHotspot?utm_source=github.com&utm_medium=referral&utm_content=Mygod/VPNHotspot&utm_campaign=Badge_Grade)