blob: 8834af92a2548c832c1219bb20fc0491fc84e980 (
plain) (
tree)
|
|
package io.crashbox.ci
import org.scalatest._
class ParserSpec extends FlatSpec with Matchers {
val build = """|tasks:
| main:
| image: foo/bar
| script: echo "hello world"
|""".stripMargin
val parsed = BuildDef(
Seq(TaskDef(DockerEnvironment("foo/bar"), "echo \"hello world\"")))
"Parser" should "parse build definitions" in {
assert(Parser.parse(build) == Parser.Success(parsed))
}
}
|