.travis.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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: xenial
  19. language: scala
  20. - 2.11.12
  21. matrix:
  22. include:
  23. - name: "Spark 2.2 Unit Tests"
  24. env: MVN_FLAG='-Pthriftserver -DskipITs'
  25. - name: "Spark 2.2 ITs"
  26. env: MVN_FLAG='-Pthriftserver -DskipTests'
  27. - name: "Spark 2.3 Unit Tests"
  28. env: MVN_FLAG='-Pspark-2.3 -Pthriftserver -DskipITs'
  29. - name: "Spark 2.3 ITs"
  30. env: MVN_FLAG='-Pspark-2.3 -Pthriftserver -DskipTests'
  31. - name: "Spark 2.4 Unit Tests"
  32. env: MVN_FLAG='-Pspark-2.4 -Pthriftserver -DskipITs'
  33. - name: "Spark 2.4 ITs"
  34. env: MVN_FLAG='-Pspark-2.4 -Pthriftserver -DskipTests'
  35. jdk:
  36. - oraclejdk8
  37. cache:
  38. pip: true
  39. directories:
  40. - $HOME/.m2
  41. install:
  42. - sudo apt-get -qq install r-base
  43. - sudo apt-get -qq install python3-pip python-dev
  44. - sudo apt-get -qq install libkrb5-dev
  45. - sudo apt-get -qq remove python-setuptools
  46. - sudo pip2 -q install --upgrade "pip < 10.0.0" "setuptools < 36"
  47. - sudo python3 -m pip -q install --upgrade "pip < 10.0.0" "setuptools < 36"
  48. - sudo pip2 -q install codecov cloudpickle
  49. - sudo python3 -m pip -q install cloudpickle
  50. - sudo pip2 -q install "requests >= 2.10.0" pytest flaky flake8 requests-kerberos
  51. - sudo pip3 -q install "requests >= 2.10.0" pytest flaky requests-kerberos
  52. script:
  53. - mvn $MVN_FLAG -Dmaven.javadoc.skip=true -B -V -e verify
  54. after_success:
  55. - bash <(curl -s https://codecov.io/bash)
  56. after_failure:
  57. - for log in `find * -name "*.log" -o -name "stderr" -o -name "stdout" -o -name "rat.txt"`; do echo "=========$log========="; cat $log; done