/appveyor.yml

https://github.com/Qihoo360/XSQL · YAML · 63 lines · 35 code · 11 blank · 17 comment · 0 complexity · bc60af313cd7cf32fd13ff0472c5573a MD5 · raw file

  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. version: "{build}-{branch}"
  16. shallow_clone: true
  17. platform: x64
  18. configuration: Debug
  19. branches:
  20. only:
  21. - master
  22. only_commits:
  23. files:
  24. - appveyor.yml
  25. - dev/appveyor-install-dependencies.ps1
  26. - R/
  27. - sql/core/src/main/scala/org/apache/spark/sql/api/r/
  28. - core/src/main/scala/org/apache/spark/api/r/
  29. - mllib/src/main/scala/org/apache/spark/ml/r/
  30. - core/src/test/scala/org/apache/spark/deploy/SparkSubmitSuite.scala
  31. - bin/*.cmd
  32. cache:
  33. - C:\Users\appveyor\.m2
  34. install:
  35. # Install maven and dependencies
  36. - ps: .\dev\appveyor-install-dependencies.ps1
  37. # Required package for R unit tests
  38. - cmd: R -e "install.packages(c('knitr', 'rmarkdown', 'devtools', 'e1071', 'survival'), repos='http://cran.us.r-project.org')"
  39. # Here, we use the fixed version of testthat. For more details, please see SPARK-22817.
  40. - cmd: R -e "devtools::install_version('testthat', version = '1.0.2', repos='http://cran.us.r-project.org')"
  41. - cmd: R -e "packageVersion('knitr'); packageVersion('rmarkdown'); packageVersion('testthat'); packageVersion('e1071'); packageVersion('survival')"
  42. build_script:
  43. - cmd: mvn -DskipTests -Psparkr -Phive package
  44. environment:
  45. NOT_CRAN: true
  46. test_script:
  47. - 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
  48. notifications:
  49. - provider: Email
  50. on_build_success: false
  51. on_build_failure: false
  52. on_build_status_changed: false