File tree Expand file tree Collapse file tree 4 files changed +25
-8
lines changed
main/resources/ammonite/shell
test/scala/ammonite/shell Expand file tree Collapse file tree 4 files changed +25
-8
lines changed Original file line number Diff line number Diff line change @@ -63,3 +63,20 @@ notifications:
63
63
64
64
65
65
sudo : false
66
+
67
+
68
+ # Stolen from https://github.com/typelevel/cats/blob/master/.travis.yml
69
+ cache :
70
+ directories :
71
+ - $HOME/.sbt/0.13/dependency
72
+ - $HOME/.sbt/boot/scala*
73
+ - $HOME/.sbt/launchers
74
+ - $HOME/.ivy2/cache
75
+ - $HOME/.coursier
76
+ - $HOME/.nvm
77
+
78
+ before_cache :
79
+ - du -h -d 1 $HOME/.ivy2/cache
80
+ - du -h -d 2 $HOME/.sbt/
81
+ - find $HOME/.sbt -name "*.lock" -type f -delete
82
+ - find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
Original file line number Diff line number Diff line change 123
123
Force pretty-printing @code{scala.xml.Elem} to use it's XML
124
124
@code{.toString} rather than treating it as a case class, since the
125
125
case-class representation is borked due to weirdness in that class.
126
+ @li
127
+ Improve pretty-printing of @code{Path}s, @code{RelPath}s and the
128
+ result of sub-processes and file-listings in the default REPL (previously
129
+ these improved-pretty-printers were limited to @code{ammonite-shell})
126
130
127
131
@sect{0.9.2}
128
132
@ul
1168
1172
1169
1173
@sect{Unstable Changlog}
1170
1174
@ul
1171
- @li
1172
- Improve pretty-printing of @code{Path}s, @code{RelPath}s and the
1173
- result of sub-processes and file-listings in the default REPL (previously
1174
- these improved-pretty-printers were limited to @code{ammonite-shell})
Original file line number Diff line number Diff line change 1
1
import ammonite .ops ._
2
- val scalaVersion = scala.util.Properties .versionNumberString.split(" \\ ." ).dropRight(1 ).mkString(" ." )
2
+ import ammonite .runtime .tools .IvyThing .scalaBinaryVersion
3
+ val scalaVersion = scala.util.Properties .versionNumberString
3
4
val ammVersion = ammonite.Constants .version
4
- interp.load.cp(pwd/ ' shell / ' target / s " scala- $scalaVersion " / s " ammonite-shell_ $scalaVersion- $ammVersion.jar " )
5
+ interp.load.cp(pwd/ ' shell / ' target / s " scala- $scalaBinaryVersion " / s " ammonite-shell_ $scalaVersion- $ammVersion.jar " )
5
6
@
6
7
val shellSession = ammonite.shell.ShellSession ()
7
8
import shellSession ._
Original file line number Diff line number Diff line change @@ -51,11 +51,10 @@ object SessionTests extends TestSuite{
51
51
52
52
@ interp.load.module( $bareSrc)
53
53
54
-
55
54
@ import ammonite.ops.ImplicitWd
56
55
57
56
@ %%ls 'ops
58
- res4 : $typeString =
57
+ res3 : $typeString =
59
58
src
60
59
target
61
60
""" )
You can’t perform that action at this time.
0 commit comments