Skip to content

Commit 083f03f

Browse files
committed
Add .travis
1 parent 7721fb7 commit 083f03f

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: scala
2+
3+
# These directories are cached to S3 at the end of the build
4+
cache:
5+
directories:
6+
- $HOME/.ivy2/cache
7+
- $HOME/.sbt/boot/
8+
9+
jdk:
10+
- oraclejdk8
11+
12+
script:
13+
## This runs the template with the default parameters, and runs test within the templated app.
14+
- sbt -Dfile.encoding=UTF8 -J-XX:ReservedCodeCacheSize=256M test
15+
16+
- pushd target/sbt-test/dotty-staged-template/scripted
17+
- sbt +run +test
18+
- popd
19+
20+
# Tricks to avoid unnecessary cache updates
21+
- find $HOME/.sbt -name "*.lock" | xargs rm
22+
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
lazy val root = project
55
.in(file("."))
66
.settings(
7-
name := "dotty-template",
7+
name := "dotty-staged-template",
88
test in Test := {
99
val _ = (g8Test in Test).toTask("").value
1010
},

0 commit comments

Comments
 (0)