mirror of
https://github.com/revanced/Apktool.git
synced 2024-11-18 18:39:23 +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:
|
||||
- TERM=dumb
|
||||
language: java
|
||||
git:
|
||||
submodules: false
|
||||
jdk:
|
||||
- openjdk7
|
||||
- oraclejdk7
|
||||
@ -8,18 +10,15 @@ jdk:
|
||||
os:
|
||||
- linux
|
||||
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 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:
|
||||
only:
|
||||
- master
|
||||
- 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) {
|
||||
options.encoding = "UTF-8"
|
||||
options.incremental = true
|
||||
}
|
||||
dependencies {
|
||||
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_minor = 'SNAPSHOT';
|
||||
|
||||
defaultTasks 'clean', 'applyPatches', 'build', 'fatJar', 'proguard'
|
||||
defaultTasks 'build', 'fatJar', 'proguard'
|
||||
|
||||
allprojects {
|
||||
apply plugin: 'java'
|
||||
@ -77,18 +76,12 @@ build.doFirst {
|
||||
"Currently it is set to: " + System.getProperty("java.home")
|
||||
);
|
||||
}
|
||||
|
||||
println 'Applying smali patches...'
|
||||
rootProject.tasks.applyPatches
|
||||
}
|
||||
|
||||
clean.doFirst {
|
||||
delete "${rootDir}/brut.apktool.smali"
|
||||
println "deleting ${rootDir}/brut.apktool.smali in favor of smali"
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = '2.3'
|
||||
println "You will need to run applyPatches again, as they have been wiped."
|
||||
}
|
||||
|
||||
// used for official releases only. Please don't use
|
||||
@ -138,3 +131,7 @@ subprojects {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = '2.3'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user