Skip to content

Commit aff5b1d

Browse files
authored
Merge pull request #60 from xuwei-k/windows
add windows test
2 parents 4a600d4 + ff9435b commit aff5b1d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ matrix:
88
include:
99
- jdk: openjdk11
1010
scala: 2.12.8
11+
- os: windows
12+
language: bash
13+
env: JDK="[email protected]"
14+
before_script:
15+
- curl "https://raw.githubusercontent.com/DanySK/Gravis-CI/c8f400623d8f756ef7c/.install-jdk-travis.sh" --output .install-jdk-travis.sh
16+
- source .install-jdk-travis.sh
17+
- wget https://raw.githubusercontent.com/paulp/sbt-extras/0ee2dae2eba72efb4a464a5ad255e348696ecda7/sbt && chmod +x ./sbt
18+
script:
19+
- ./sbt "++ 2.12.8" test
1120

1221
sudo: false
1322

windows_test_filter.sbt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
val excludeTestsIfWindows = Set(
2+
// TODO
3+
// new line char?
4+
"scalikejdbc.play.FixtureSpec",
5+
)
6+
7+
testOptions in Test in ThisBuild ++= {
8+
if (scala.util.Properties.isWin) {
9+
Seq(Tests.Exclude(excludeTestsIfWindows))
10+
} else {
11+
Nil
12+
}
13+
}

0 commit comments

Comments
 (0)