.travis.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. sudo: required
  18. dist: trusty
  19. language: scala
  20. env:
  21. matrix:
  22. - MVN_FLAG='-DskipTests'
  23. - MVN_FLAG='-Pspark-2.0-it -DskipTests'
  24. - MVN_FLAG='-Pspark-2.1-it -DskipTests'
  25. - MVN_FLAG='-Pspark-1.6 -DskipITs'
  26. - MVN_FLAG='-Pspark-2.0 -DskipITs'
  27. - MVN_FLAG='-Pspark-2.1 -DskipITs'
  28. matrix:
  29. include:
  30. # Spark 2.2+ will only be verified using JDK8
  31. # Thriftserver requires JDK8
  32. - env: MVN_FLAG='-Pthriftserver -Pspark-2.2-it -DskipTests'
  33. jdk: oraclejdk8
  34. - env: MVN_FLAG='-Pthriftserver -Pspark-2.2 -DskipITs'
  35. jdk: oraclejdk8
  36. - env: MVN_FLAG='-Pthriftserver -Pspark-2.3-it -DskipTests'
  37. jdk: oraclejdk8
  38. - env: MVN_FLAG='-Pthriftserver -Pspark-2.3 -DskipITs'
  39. jdk: oraclejdk8
  40. jdk:
  41. - openjdk7
  42. addons:
  43. apt:
  44. sources:
  45. r-packages-trusty
  46. packages:
  47. r-base
  48. cache:
  49. pip: true
  50. directories:
  51. - $HOME/.m2
  52. before_install:
  53. - sudo apt-get -y install python3-pip python-dev
  54. - sudo apt-get -y install libkrb5-dev
  55. - sudo apt-get -y remove python-setuptools
  56. - sudo pip2 install --upgrade "pip < 10.0.0" "setuptools < 36"
  57. - sudo python3 -m pip install --upgrade "pip < 10.0.0" "setuptools < 36"
  58. - sudo pip2 install codecov cloudpickle
  59. - sudo python3 -m pip install cloudpickle
  60. install:
  61. - mvn $MVN_FLAG install -Dskip -DskipTests -DskipITs -Dmaven.javadoc.skip=true -B -V
  62. before_script:
  63. - sudo pip2 install "requests >= 2.10.0" pytest flaky flake8 requests-kerberos
  64. - sudo pip3 install "requests >= 2.10.0" pytest flaky requests-kerberos
  65. script:
  66. - mvn $MVN_FLAG verify -e
  67. after_success:
  68. - bash <(curl -s https://codecov.io/bash)
  69. after_failure:
  70. - for log in `find * -name "*.log" -o -name "stderr" -o -name "stdout" -o -name "rat.txt"`; do echo "=========$log========="; cat $log; done