mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-07 10:35:52 +01:00
build: initial attempt at getting travis windows support
build: force windows onto the bash environment build: update permission (+x) of clean-test file build: "bat" instead of "exe" extension build: attempt to support long-path names on windows build: another attempt at long filepaths on windows build: force +x on scripts prior to execution build: exit with return code of last command build: dump out current path build: dump out current path - part 2 fix: remove 5 chars from path to drop down from 260 windows max path build: correct gradlew.bat path and remove unneeded lines fix: remove long path global configuration fix: restore PATH setting for windows env build: PATH resets between scripts, fix for windows
This commit is contained in:
parent
d7f9be9200
commit
cfea3e0831
29
.travis.yml
29
.travis.yml
@ -1,28 +1,35 @@
|
|||||||
env:
|
env:
|
||||||
- TERM=dumb GROOVY_TURN_OFF_JAVA_WARNINGS=true
|
global:
|
||||||
|
- TERM=dumb
|
||||||
|
- GROOVY_TURN_OFF_JAVA_WARNINGS=true
|
||||||
|
|
||||||
language: java
|
language: java
|
||||||
|
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
jdk: openjdk8
|
jdk: openjdk8
|
||||||
# - os: linux
|
|
||||||
# jdk: openjdk9
|
|
||||||
- os: linux
|
- os: linux
|
||||||
jdk: oraclejdk8
|
jdk: oraclejdk8
|
||||||
# - os: linux
|
|
||||||
# jdk: oraclejdk9
|
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode9.2
|
osx_image: xcode9.2
|
||||||
# - os: osx
|
- os: windows
|
||||||
# osx_image: xcode9.4
|
language: bash
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.gradle/caches/
|
- $HOME/.gradle/caches/
|
||||||
- $HOME/.gradle/wrapper/
|
- $HOME/.gradle/wrapper/
|
||||||
install: ./gradlew clean
|
|
||||||
script: ./gradlew build shadowJar proguard
|
install:
|
||||||
|
- chmod +x ./scripts/travis-ci/clean-tests.sh
|
||||||
|
- ./scripts/travis-ci/clean-tests.sh
|
||||||
|
|
||||||
|
script:
|
||||||
|
- chmod +x ./scripts/travis-ci/run-tests.sh
|
||||||
|
- ./scripts/travis-ci/run-tests.sh
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- stable
|
|
@ -241,7 +241,7 @@ public class BuildAndDecodeTest extends BaseTest {
|
|||||||
@Test
|
@Test
|
||||||
public void qualifiersTest() throws BrutException {
|
public void qualifiersTest() throws BrutException {
|
||||||
compareValuesFiles("values-mcc004-mnc4-en-rUS-ldrtl-sw100dp-w200dp-h300dp"
|
compareValuesFiles("values-mcc004-mnc4-en-rUS-ldrtl-sw100dp-w200dp-h300dp"
|
||||||
+ "-xlarge-long-round-highdr-land-desk-night-xhdpi-finger-keyssoft-12key"
|
+ "-long-round-highdr-land-desk-night-xhdpi-finger-keyssoft-12key"
|
||||||
+ "-navhidden-dpad-v26/strings.xml");
|
+ "-navhidden-dpad-v26/strings.xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
11
scripts/travis-ci/clean-tests.sh
Executable file
11
scripts/travis-ci/clean-tests.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
|
||||||
|
choco install jdk8
|
||||||
|
export PATH=$PATH:"/c/Program Files/Java/jdk1.8.0_191/bin"
|
||||||
|
./gradlew.bat clean
|
||||||
|
else
|
||||||
|
./gradlew clean
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit $?
|
@ -1,2 +1,10 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
./gradlew build shadowJar
|
|
||||||
|
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
|
||||||
|
export PATH=$PATH:"/c/Program Files/Java/jdk1.8.0_191/bin"
|
||||||
|
./gradlew.bat build shadowJar proguard
|
||||||
|
else
|
||||||
|
./gradlew build shadowJar proguard
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit $?
|
Loading…
Reference in New Issue
Block a user