Skip to content

Commit 188c828

Browse files
committed
org.apache.spark.streaming.JavaAPISuite
1 parent 22cb3a0 commit 188c828

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

appveyor.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,38 @@ shallow_clone: true
2020
platform: x64
2121
configuration: Debug
2222

23-
branches:
24-
only:
25-
- master
26-
27-
only_commits:
28-
files:
29-
- R/
23+
environment:
24+
# Disable lint
25+
NOLINT_ON_COMPILE: 0
3026

3127
cache:
3228
- C:\Users\appveyor\.m2
3329

3430
install:
3531
# Install maven and dependencies
3632
- ps: .\dev\appveyor-install-dependencies.ps1
37-
# Required package for R unit tests
38-
- cmd: R -e "install.packages('testthat', repos='http://cran.us.r-project.org')"
39-
- cmd: R -e "packageVersion('testthat')"
40-
- cmd: R -e "install.packages('e1071', repos='http://cran.us.r-project.org')"
41-
- cmd: R -e "packageVersion('e1071')"
42-
- cmd: R -e "install.packages('survival', repos='http://cran.us.r-project.org')"
43-
- cmd: R -e "packageVersion('survival')"
33+
# Install sbt to run individual tests
34+
- ps: |
35+
Add-Type -AssemblyName System.IO.Compression.FileSystem
36+
if (!(Test-Path -Path "C:\sbt" )) {
37+
(new-object System.Net.WebClient).DownloadFile(
38+
'https://dl.bintray.com/sbt/native-packages/sbt/0.13.7/sbt-0.13.7.zip',
39+
'C:\sbt-bin.zip'
40+
)
41+
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\sbt-bin.zip", "C:\sbt")
42+
}
43+
- cmd: SET PATH=C:\sbt\sbt\bin;%JAVA_HOME%\bin;%PATH%
44+
- cmd: SET SBT_OPTS=-XX:MaxPermSize=2g -Xmx4g
4445

4546
build_script:
46-
- cmd: mvn -DskipTests -Phadoop-2.6 -Psparkr -Phive -Phive-thriftserver package
47-
48-
test_script:
49-
- cmd: .\bin\spark-submit2.cmd --conf spark.hadoop.fs.default.name="file:///" R\pkg\tests\run-all.R
47+
- cmd: sbt clean package
5048

5149
notifications:
5250
- provider: Email
5351
on_build_success: false
5452
on_build_failure: false
5553
on_build_status_changed: false
5654

55+
test_script:
56+
- cmd: sbt "test-only org.apache.spark.streaming.JavaAPISuite"
57+

0 commit comments

Comments
 (0)