File tree Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,14 @@ scala:
19
19
before_install :
20
20
- export PATH=${PATH}:./vendor/bundle
21
21
22
+ env :
23
+ - TRAVIS_NODE_VERSION="5.12.0"
24
+ - TRAVIS_NODE_VERSION="6.10.0"
25
+ - TRAVIS_NODE_VERSION="7.6.0"
26
+
22
27
install :
28
+ - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
29
+ - npm install
23
30
- rvm use 2.2.3 --install --fuzzy
24
31
- gem update --system
25
32
- gem install sass
@@ -30,15 +37,13 @@ cache:
30
37
- $HOME/.ivy2
31
38
- $HOME/.m2
32
39
- $HOME/.coursier
33
-
34
- env :
35
- - COURSIER_NO_TERM=1
40
+ - $HOME/.sbt/boot
36
41
37
42
script :
38
43
- sbt ++$TRAVIS_SCALA_VERSION clean scalajavatimeJVM/test
39
44
- sbt ++$TRAVIS_SCALA_VERSION clean scalajavatimeJS/test
40
45
- sbt docs/makeMicrosite
41
- # - sbt clean coverage test &&
42
- # sbt coverageAggregate
43
- after_success :
44
- # - sbt coveralls
46
+ # Tricks to avoid unnecessary cache updates, from
47
+ # http://www.scala- sbt.org/0.13/docs/Travis-CI-with-sbt.html
48
+ - find $HOME/.sbt -name "*.lock" | xargs rm
49
+ - find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
Original file line number Diff line number Diff line change @@ -22,13 +22,18 @@ lazy val commonSettings = Seq(
22
22
crossScalaVersions := crossScalaVer,
23
23
autoAPIMappings := true ,
24
24
25
- scalacOptions in Compile ++= Seq (
26
- " -deprecation" ,
27
- " -feature" ,
28
- // Enable when documentation does not produce warnings
29
- // "-Xfatal-warnings",
25
+ scalacOptions ++= Seq (" -deprecation" , " -feature" ,
30
26
" -encoding" , " UTF-8"
31
27
),
28
+ scalacOptions := {
29
+ CrossVersion .partialVersion(scalaVersion.value) match {
30
+ case Some ((2 , scalaMajor)) if scalaMajor >= 11 =>
31
+ scalacOptions.value ++ Seq (" -deprecation:false" , " -Xfatal-warnings" )
32
+ case Some ((2 , 10 )) =>
33
+ scalacOptions.value
34
+ }
35
+ },
36
+ javaOptions ++= Seq (" -Dfile.encoding=UTF8" ),
32
37
33
38
publishArtifact in Test := false ,
34
39
publishMavenStyle := true ,
You can’t perform that action at this time.
0 commit comments