.travis.yml 2.2 KB

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