mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-22 01:37:34 +01:00
have travis use github public URLs
attempt to run tests with default tasks remove notifications & override install command add git config setup for travis-ci set email/name globally on travis-ci run applyPatches before compileJava remove incremental java build add "build fatJar proguard" to script run applyPatches before running script Update build.gradle add wrapper to footer (post cleanup)
This commit is contained in:
parent
3d8a50fc7d
commit
92077203d8
17
.travis.yml
17
.travis.yml
@ -1,6 +1,8 @@
|
|||||||
env:
|
env:
|
||||||
- TERM=dumb
|
- TERM=dumb
|
||||||
language: java
|
language: java
|
||||||
|
git:
|
||||||
|
submodules: false
|
||||||
jdk:
|
jdk:
|
||||||
- openjdk7
|
- openjdk7
|
||||||
- oraclejdk7
|
- oraclejdk7
|
||||||
@ -8,18 +10,15 @@ jdk:
|
|||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
before_install:
|
before_install:
|
||||||
|
- git config --global user.email "travis@connortumbleson.com"
|
||||||
|
- git config --global user.name "Travis CI Bot"
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
- sudo apt-get install -qq libstdc++6:i386 lib32z1 expect
|
- sudo apt-get install -qq libstdc++6:i386 lib32z1 expect
|
||||||
script: ./scripts/travis-ci/run-tests.sh
|
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
install: ./gradlew applyPatches
|
||||||
|
script: ./gradlew build fatJar proguard
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- stable
|
- stable
|
||||||
notifications:
|
|
||||||
irc:
|
|
||||||
channels:
|
|
||||||
- "chat.freenode.net#apktool"
|
|
||||||
on_success: change
|
|
||||||
on_failure: always
|
|
||||||
template:
|
|
||||||
- "%{repository_name} (%{commit}) : %{duration} - %{message}"
|
|
||||||
|
15
build.gradle
15
build.gradle
@ -19,7 +19,6 @@ buildscript {
|
|||||||
}
|
}
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
options.encoding = "UTF-8"
|
options.encoding = "UTF-8"
|
||||||
options.incremental = true
|
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'eu.appsatori:gradle-fatjar-plugin:0.3'
|
classpath 'eu.appsatori:gradle-fatjar-plugin:0.3'
|
||||||
@ -36,7 +35,7 @@ apply from: 'gradle/functions.gradle'
|
|||||||
def apktoolversion_major = '2.0.3'
|
def apktoolversion_major = '2.0.3'
|
||||||
def apktoolversion_minor = 'SNAPSHOT';
|
def apktoolversion_minor = 'SNAPSHOT';
|
||||||
|
|
||||||
defaultTasks 'clean', 'applyPatches', 'build', 'fatJar', 'proguard'
|
defaultTasks 'build', 'fatJar', 'proguard'
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
@ -77,18 +76,12 @@ build.doFirst {
|
|||||||
"Currently it is set to: " + System.getProperty("java.home")
|
"Currently it is set to: " + System.getProperty("java.home")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
println 'Applying smali patches...'
|
|
||||||
rootProject.tasks.applyPatches
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clean.doFirst {
|
clean.doFirst {
|
||||||
delete "${rootDir}/brut.apktool.smali"
|
delete "${rootDir}/brut.apktool.smali"
|
||||||
println "deleting ${rootDir}/brut.apktool.smali in favor of smali"
|
println "deleting ${rootDir}/brut.apktool.smali in favor of smali"
|
||||||
}
|
println "You will need to run applyPatches again, as they have been wiped."
|
||||||
|
|
||||||
task wrapper(type: Wrapper) {
|
|
||||||
gradleVersion = '2.3'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// used for official releases only. Please don't use
|
// used for official releases only. Please don't use
|
||||||
@ -138,3 +131,7 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task wrapper(type: Wrapper) {
|
||||||
|
gradleVersion = '2.3'
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user