File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,11 @@ sourceSets.test {
43
43
44
44
tasks {
45
45
register(" cleanPackDir" ) {
46
- file(" pack/" ).delete()
47
- file(" pack/" ).mkdirs()
46
+ file(" pack/" ).listFiles()?.forEach { it.delete() }
47
+ }
48
+
49
+ register(" cleanE2EDir" ) {
50
+ file(" e2e/" ).listFiles()?.forEach { if (it.name.endsWith(" .tgz" )) it.delete() }
48
51
}
49
52
50
53
register<Exec >(" makeDist" ) {
@@ -60,7 +63,7 @@ tasks {
60
63
}
61
64
62
65
register<Copy >(" updateDockerFiles" ) {
63
- dependsOn(" buildDist" )
66
+ dependsOn(" buildDist" , " cleanE2EDir " )
64
67
from(" pack/" )
65
68
into(" e2e/" )
66
69
}
Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ export default class LiveInstrumentRemote {
278
278
}
279
279
280
280
// TODO: Call this regularly to clean up old instruments
281
+ // TODO: Ensure the cache doesn't get too large
281
282
private cleanCache ( ) {
282
283
let now = Date . now ( ) ;
283
284
this . instrumentCache . forEach ( ( value , key ) => {
Original file line number Diff line number Diff line change
1
+ const sourceplusplus = require ( "../../dist/SourcePlusPlus.js" ) ;
2
+ sourceplusplus . start ( ) . then ( ( ) => {
3
+ console . log ( "test" ) ;
4
+ } ) ;
You can’t perform that action at this time.
0 commit comments