Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
SquirrelJME
Commits
728491f6
Commit
728491f6
authored
May 20, 2022
by
Stephanie Gawroriski
Browse files
Do not run the test task, but if test is requested (such as by build) then run testHosted.
parent
13a6ccd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
.idea/compiler.xml
View file @
728491f6
...
...
@@ -2,6 +2,7 @@
<project
version=
"4"
>
<component
name=
"CompilerConfiguration"
>
<annotationProcessing>
<profile
default=
"true"
name=
"Default"
enabled=
"true"
/>
<profile
name=
"Gradle Imported"
enabled=
"true"
>
<outputRelativeToContentRoot
value=
"true"
/>
<processorPath
useClasspath=
"false"
>
...
...
buildSrc/src/main/java/cc/squirreljme/plugin/multivm/DefunctTestTask.java
View file @
728491f6
...
...
@@ -10,6 +10,7 @@
package
cc.squirreljme.plugin.multivm
;
import
javax.inject.Inject
;
import
org.gradle.api.DefaultTask
;
import
org.gradle.api.Task
;
import
org.gradle.api.tasks.testing.Test
;
...
...
@@ -34,8 +35,13 @@ public class DefunctTestTask
this
.
setGroup
(
"defunct"
);
this
.
setDescription
(
"Defunct test task, relies on another test task."
);
// Always runs
this
.
onlyIf
(
new
AlwaysTrue
());
// Never runs
this
.
onlyIf
(
new
AlwaysFalse
());
// Depend on testHosted since all of the tests are there and those
// may assume as such
this
.
dependsOn
(
this
.
getProject
()
.
getTasks
().
findByName
(
"testHosted"
));
// Make sure the task fails as quickly as possibles
this
.
doFirst
(
this
::
action
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment