[SPARK-7721][PYTHON][TESTS] Adds PySpark coverage generation script
[spark.git] / appveyor.yml
1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements. See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 version: "{build}-{branch}"
17
18 shallow_clone: true
19
20 platform: x64
21 configuration: Debug
22
23 branches:
24   only:
25     - master
26
27 only_commits:
28   files:
29     - appveyor.yml
30     - dev/appveyor-install-dependencies.ps1
31     - R/
32     - sql/core/src/main/scala/org/apache/spark/sql/api/r/
33     - core/src/main/scala/org/apache/spark/api/r/
34     - mllib/src/main/scala/org/apache/spark/ml/r/
35     - core/src/test/scala/org/apache/spark/deploy/SparkSubmitSuite.scala
36     - bin/*.cmd
37
38 cache:
39   - C:\Users\appveyor\.m2
40
41 install:
42   # Install maven and dependencies
43   - ps: .\dev\appveyor-install-dependencies.ps1
44   # Required package for R unit tests
45   - cmd: R -e "install.packages(c('knitr', 'rmarkdown', 'devtools', 'e1071', 'survival'), repos='http://cran.us.r-project.org')"
46   # Here, we use the fixed version of testthat. For more details, please see SPARK-22817.
47   - cmd: R -e "devtools::install_version('testthat', version = '1.0.2', repos='http://cran.us.r-project.org')"
48   - cmd: R -e "packageVersion('knitr'); packageVersion('rmarkdown'); packageVersion('testthat'); packageVersion('e1071'); packageVersion('survival')"
49
50 build_script:
51   - cmd: mvn -DskipTests -Psparkr -Phive -Phive-thriftserver package
52
53 environment:
54   NOT_CRAN: true
55
56 test_script:
57   - cmd: .\bin\spark-submit2.cmd --driver-java-options "-Dlog4j.configuration=file:///%CD:\=/%/R/log4j.properties" --conf spark.hadoop.fs.defaultFS="file:///" R\pkg\tests\run-all.R
58
59 notifications:
60   - provider: Email
61     on_build_success: false
62     on_build_failure: false
63     on_build_status_changed: false