Permalink
Browse files

smoke-test project: currently builds with maven3 and sbt0.11.

  • Loading branch information...
1 parent cc83472 commit 56060a1398a4ca9371b1a82e5760689fbdde010a @mtkopone committed Apr 25, 2012
View
@@ -4,6 +4,7 @@
<modules>
<module fileurl="file://$PROJECT_DIR$/sbt-scct/sbt-scct.iml" filepath="$PROJECT_DIR$/sbt-scct/sbt-scct.iml" />
<module fileurl="file://$PROJECT_DIR$/scct/scct.iml" filepath="$PROJECT_DIR$/scct/scct.iml" />
+ <module fileurl="file://$PROJECT_DIR$/smoke-test/simple-test/simple-test.iml" filepath="$PROJECT_DIR$/smoke-test/simple-test/simple-test.iml" />
</modules>
</component>
</project>
@@ -0,0 +1,16 @@
+organization := "reaktor.scct"
+
+name := "simple-test"
+
+version := "1.0"
+
+scalaVersion := "2.9.1"
+
+resolvers += "scct-local-repo" at "file://"+baseDirectory+"/../../gh-pages/maven-repo"
+
+libraryDependencies ++= Seq(
+ "junit" % "junit" % "4.10" % "test",
+ "org.specs2" %% "specs2" % "1.9" % "test"
+)
+
+seq(ScctPlugin.scctSettings: _*)
@@ -0,0 +1,113 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>reaktor.scct</groupId>
+ <artifactId>simple-test</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <name>reaktor.scct.simple-test</name>
+ <properties>
+ <maven.compiler.source>1.6</maven.compiler.source>
+ <maven.compiler.target>1.6</maven.compiler.target>
+ <encoding>UTF-8</encoding>
+ <scala.version>2.9.1</scala.version>
+ </properties>
+ <dependencies>
+ <!-- compile -->
+ <dependency>
+ <groupId>org.scala-lang</groupId>
+ <artifactId>scala-library</artifactId>
+ <version>${scala.version}</version>
+ </dependency>
+ <!-- test -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.10</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.specs2</groupId>
+ <artifactId>specs2_${scala.version}</artifactId>
+ <version>1.9</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <sourceDirectory>src/main/scala</sourceDirectory>
+ <testSourceDirectory>src/test/scala</testSourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.scala-tools</groupId>
+ <artifactId>maven-scala-plugin</artifactId>
+ <version>2.15.2</version>
+ <executions>
+ <execution>
+ <id>main-scalac</id>
+ <goals><goal>compile</goal></goals>
+ </execution>
+ <execution>
+ <id>test-scalac</id>
+ <goals><goal>testCompile</goal></goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.7.2</version>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <id>coverage</id>
+ <repositories>
+ <repository>
+ <id>scct-local-repo</id>
+ <url>file://${basedir}/../../gh-pages/maven-repo</url>
+ </repository>
+ </repositories>
+ <dependencies>
+ <dependency>
+ <groupId>reaktor</groupId>
+ <artifactId>scct_2.9.1</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <systemPropertyVariables>
+ <scct.project.name>${project.name}</scct.project.name>
+ <scct.coverage.file>${project.build.outputDirectory}/coverage.data</scct.coverage.file>
+ <scct.report.dir>${project.build.directory}/coverage-report</scct.report.dir>
+ <scct.source.dir>${project.build.sourceDirectory}</scct.source.dir>
+ </systemPropertyVariables>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.scala-tools</groupId>
+ <artifactId>maven-scala-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>main-scalac</id>
+ <configuration>
+ <compilerPlugins>
+ <compilerPlugin>
+ <groupId>reaktor</groupId>
+ <artifactId>scct_2.9.1</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </compilerPlugin>
+ </compilerPlugins>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
@@ -0,0 +1,3 @@
+resolvers += Classpaths.typesafeResolver
+
+addSbtPlugin("ch.craven" %% "scct-plugin" % "0.2.1")
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module relativePaths="false" type="JAVA_MODULE" version="4">
+ <component name="FacetManager">
+ <facet type="scala" name="Scala">
+ <configuration>
+ <option name="compilerLibraryLevel" value="Global" />
+ <option name="compilerLibraryName" value="scala-compiler-2.9.1" />
+ <option name="fsc" value="true" />
+ </configuration>
+ </facet>
+ </component>
+ <component name="NewModuleRootManager" inherit-compiler-output="false">
+ <output url="file://$MODULE_DIR$/target/classes" />
+ <output-test url="file://$MODULE_DIR$/target/test-classes" />
+ <exclude-output />
+ <content url="file://$MODULE_DIR$">
+ <sourceFolder url="file://$MODULE_DIR$/src/main/scala" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/test/scala" isTestSource="true" />
+ <excludeFolder url="file://$MODULE_DIR$/target" />
+ </content>
+ <orderEntry type="inheritedJdk" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.10/junit-4.10.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MAVEN_REPOSITORY$/org/specs2/specs2_2.9.1/1.9/specs2_2.9.1-1.9.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MAVEN_REPOSITORY$/org/specs2/specs2-scalaz-core_2.9.1/6.0.1/specs2-scalaz-core_2.9.1-6.0.1.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root url="jar://$MAVEN_REPOSITORY$/org/scala-lang/scala-library/2.9.1/scala-library-2.9.1.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ </component>
+</module>
+
@@ -0,0 +1,14 @@
+package jestan01.app
+
+
+
+package object argh {
+ case class Person()
+}
+
+class Foo {
+ import jestan01.app.argh._
+ object myRequestVar extends RequestVar[Person](Person())
+ abstract class RequestVar[T](dflt: => T) {}
+}
+
@@ -0,0 +1,12 @@
+package reaktor.scct
+
+object HelloWorld {
+ def concat(x : Array[String]) = {
+ x.foldLeft("")((a,b) => a + b)
+ }
+
+ def untestedMethod() = {
+ val x = 12
+ x * 2
+ }
+}
@@ -0,0 +1,11 @@
+package reaktor.scct
+
+import org.specs2.mutable._
+
+class HelloWorldTest extends SpecificationWithJUnit {
+ "Hello World" should {
+ "concatenate Strings" in {
+ HelloWorld.concat(Array("foo","bar")) mustEqual "foobar"
+ }
+ }
+}

0 comments on commit 56060a1

Please sign in to comment.