Skip to content

Commit cbccad5

Browse files
committed
build: strip tests from dist build
1 parent ae179b5 commit cbccad5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/buildall.fan

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ class Build : BuildGroup
158158
if (n.startsWith(".")) return false
159159
if (n == "tmp") return false
160160
if (n == "temp") return false
161+
if (n.startsWith("test") && f.ext == "pod") return false
161162
if (f.isDir) log.info(" $path")
162163
return true
163164
}
@@ -187,6 +188,7 @@ class Build : BuildGroup
187188
@Target { help = "Build fantom-1.0.xx.zip distribution" }
188189
Void dist()
189190
{
191+
spawnOnChildrenVars["FAN_BUILD_STRIPTEST"] = "true"
190192
superclean
191193
compile
192194
examples
@@ -229,6 +231,8 @@ class Build : BuildGroup
229231
// Utils
230232
//////////////////////////////////////////////////////////////////////////
231233

234+
Str:Str spawnOnChildrenVars := [:]
235+
232236
override Void spawnOnChildren(Str target)
233237
{
234238
// make exec task to spawn buildboot and buildpods
@@ -240,6 +244,10 @@ class Build : BuildGroup
240244
// wrong FAN_HOME to buildpods.fan
241245
pods.process.env["FAN_HOME"] = devHomeDir.osPath
242246

247+
// set extra environment variables
248+
boot.process.env.setAll(spawnOnChildrenVars)
249+
pods.process.env.setAll(spawnOnChildrenVars)
250+
243251
// spawn
244252
boot.run
245253
pods.run

0 commit comments

Comments
 (0)