Use target=10.2 instead of variant=Old

I think this will be more clear to future devs
This commit is contained in:
Chris Willis-Ford 2015-07-31 12:39:17 -07:00
parent 8df2fa8be0
commit 67907db0f9
3 changed files with 9 additions and 8 deletions

View file

@ -2,9 +2,10 @@ language: groovy
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/dists/
script:
- ./gradlew check -Pvariant=New
- ./gradlew check -Pvariant=Old
- ./gradlew check -Ptarget=11.6
- ./gradlew check -Ptarget=10.2
notifications:
slack:
secure: TFnMix3WLFecQLMgmSIsUrnZUV7s5U7mJlzkfLrGU02u0uztjLcJr9qekg65I0wFtqGuMGAOfPAZo4hf0l5djzJTSUobLdlTpEunIEWd53IUZlljKCJQsVT8hfJtbjpIXMraLRLyTzDkXcRO3v2xthU30vsSI75sxQYufBx5/sU=

View file

@ -1,5 +1,5 @@
environments {
New {
'11.6' {
output = 'Scratch'
playerVersion = '11.6'
additionalCompilerOptions = [
@ -7,7 +7,7 @@ environments {
"-define+=SCRATCH::allow3d,true",
]
}
Old {
'10.2' {
output = 'ScratchFor10.2'
playerVersion = '10.2'
additionalCompilerOptions = [

View file

@ -21,14 +21,14 @@ repositories {
apply plugin: org.gradlefx.plugins.GradleFxPlugin
def commonDir = ext.commonDir
def variant = hasProperty('variant') ? variant : 'New'
println "Variant is: $variant"
def config = new ConfigSlurper(variant).parse(file("${commonDir}/config.groovy").toURL())
def target = hasProperty('target') ? target : '11.6'
println "Target is: $target"
def config = new ConfigSlurper(target).parse(file("${commonDir}/config.groovy").toURL())
type = 'mobile'
version = '1.0-SNAPSHOT'
frameworkLinkage = 'none'
buildDir = "${buildDir}/${variant}" // GradleFX does an out-of-date check on the whole build dir
buildDir = "${buildDir}/${target}" // GradleFX does an out-of-date check on the whole build dir
output = config.get('output')
playerVersion = config.get('playerVersion')