Use CircleCI
This commit is contained in:
30
.circleci/config.yml
Normal file
30
.circleci/config.yml
Normal file
@@ -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
|
||||||
25
.travis.yml
25
.travis.yml
@@ -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
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# VPN Hotspot
|
# VPN Hotspot
|
||||||
|
|
||||||
[](https://travis-ci.org/Mygod/VPNHotspot)
|
[](https://circleci.com/gh/Mygod/VPNHotspot)
|
||||||
[](https://android-arsenal.com/api?level=21)
|
[](https://android-arsenal.com/api?level=21)
|
||||||
[](https://github.com/Mygod/VPNHotspot/releases)
|
[](https://github.com/Mygod/VPNHotspot/releases)
|
||||||
[](https://www.codacy.com/app/Mygod/VPNHotspot?utm_source=github.com&utm_medium=referral&utm_content=Mygod/VPNHotspot&utm_campaign=Badge_Grade)
|
[](https://www.codacy.com/app/Mygod/VPNHotspot?utm_source=github.com&utm_medium=referral&utm_content=Mygod/VPNHotspot&utm_campaign=Badge_Grade)
|
||||||
|
|||||||
Reference in New Issue
Block a user