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:
Connor Tumbleson 2019-01-09 11:45:54 -05:00
parent d7f9be9200
commit cfea3e0831
5 changed files with 39 additions and 13 deletions

View File

@ -1,28 +1,35 @@
env:
- TERM=dumb GROOVY_TURN_OFF_JAVA_WARNINGS=true
global:
- TERM=dumb
- GROOVY_TURN_OFF_JAVA_WARNINGS=true
language: java
dist: trusty
matrix:
include:
- os: linux
jdk: openjdk8
# - os: linux
# jdk: openjdk9
- os: linux
jdk: oraclejdk8
# - os: linux
# jdk: oraclejdk9
- os: osx
osx_image: xcode9.2
# - os: osx
# osx_image: xcode9.4
- os: windows
language: bash
cache:
directories:
- $HOME/.gradle/caches/
- $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:
only:
- master
- stable
- master

View File

@ -241,7 +241,7 @@ public class BuildAndDecodeTest extends BaseTest {
@Test
public void qualifiersTest() throws BrutException {
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");
}

View 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 $?

View File

@ -1,2 +1,10 @@
#!/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 $?