aboutsummaryrefslogtreecommitdiff
path: root/src/integTest
diff options
context:
space:
mode:
Diffstat (limited to 'src/integTest')
-rw-r--r--src/integTest/groovy/frege/gradle/integtest/fixtures/AbstractFregeIntegrationSpec.groovy2
-rw-r--r--src/integTest/groovy/frege/gradle/plugins/FregePluginIntegTest.groovy20
-rw-r--r--src/integTest/groovy/frege/gradle/tasks/FregeCompileIntegTest.groovy7
3 files changed, 20 insertions, 9 deletions
diff --git a/src/integTest/groovy/frege/gradle/integtest/fixtures/AbstractFregeIntegrationSpec.groovy b/src/integTest/groovy/frege/gradle/integtest/fixtures/AbstractFregeIntegrationSpec.groovy
index 7415ef1..71d3ea8 100644
--- a/src/integTest/groovy/frege/gradle/integtest/fixtures/AbstractFregeIntegrationSpec.groovy
+++ b/src/integTest/groovy/frege/gradle/integtest/fixtures/AbstractFregeIntegrationSpec.groovy
@@ -7,7 +7,7 @@ import org.junit.rules.TemporaryFolder
import spock.lang.Specification
class AbstractFregeIntegrationSpec extends Specification {
- public static final String DEFAULT_FREGE_VERSION = "3.23.370-g898bc8c"
+ public static final String DEFAULT_FREGE_VERSION = "3.24.405"
List<File> pluginClasspath
@Rule
diff --git a/src/integTest/groovy/frege/gradle/plugins/FregePluginIntegTest.groovy b/src/integTest/groovy/frege/gradle/plugins/FregePluginIntegTest.groovy
index 2acfa9d..798d333 100644
--- a/src/integTest/groovy/frege/gradle/plugins/FregePluginIntegTest.groovy
+++ b/src/integTest/groovy/frege/gradle/plugins/FregePluginIntegTest.groovy
@@ -3,6 +3,7 @@ import frege.gradle.integtest.fixtures.AbstractFregeIntegrationSpec
import org.gradle.testkit.runner.BuildResult
import spock.lang.Unroll
+import static org.gradle.testkit.runner.TaskOutcome.NO_SOURCE
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
import static org.gradle.testkit.runner.TaskOutcome.UP_TO_DATE
@@ -16,6 +17,12 @@ class FregePluginIntegTest extends AbstractFregeIntegrationSpec {
repositories {
jcenter()
+ flatDir {
+ dirs '${new File(".").absolutePath}/lib'
+ }
+ }
+ compileFrege {
+ classpath = files()
}
"""
}
@@ -31,9 +38,9 @@ class FregePluginIntegTest extends AbstractFregeIntegrationSpec {
when:
def result = run(gradleVersion, "classes")
then:
- result.task(":compileFrege").outcome == UP_TO_DATE
+ result.task(":compileFrege").outcome == NO_SOURCE
where:
- gradleVersion << ["2.8", "2.11", "2.12"]
+ gradleVersion << ["4.0", "5.0", "5.3.1"]
}
@Unroll
@@ -57,12 +64,10 @@ class FregePluginIntegTest extends AbstractFregeIntegrationSpec {
where:
fregeVersion | gradleVersion
- DEFAULT_FREGE_VERSION | "2.12"
+ DEFAULT_FREGE_VERSION | "5.3.1"
+ DEFAULT_FREGE_VERSION | "5.0"
+ DEFAULT_FREGE_VERSION | "4.0"
"3.22.367-g2737683" | "2.12"
- DEFAULT_FREGE_VERSION | "2.9"
- DEFAULT_FREGE_VERSION | "2.8"
- "3.22.367-g2737683" | "2.9"
- "3.22.367-g2737683" | "2.8"
}
private void fregeModule(String modulePath = "src/main/frege/org/frege/HelloFrege.fr") {
@@ -105,6 +110,7 @@ class FregePluginIntegTest extends AbstractFregeIntegrationSpec {
dependencies {
compile "org.frege-lang:frege:$DEFAULT_FREGE_VERSION"
}
+ ext.destinationDir = "docs"
"""
and:
diff --git a/src/integTest/groovy/frege/gradle/tasks/FregeCompileIntegTest.groovy b/src/integTest/groovy/frege/gradle/tasks/FregeCompileIntegTest.groovy
index 1d01552..2f2b9d4 100644
--- a/src/integTest/groovy/frege/gradle/tasks/FregeCompileIntegTest.groovy
+++ b/src/integTest/groovy/frege/gradle/tasks/FregeCompileIntegTest.groovy
@@ -17,7 +17,12 @@ class FregeCompileIntegTest extends AbstractFregeIntegrationSpec {
import frege.gradle.tasks.FregeCompile
- repositories { jcenter() }
+ repositories {
+ jcenter()
+ flatDir {
+ dirs '${new File(".").absolutePath}/lib'
+ }
+ }
configurations { frege {} }