.travis.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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='-Pspark-1.6 -DskipTests'
  23. - MVN_FLAG='-Pspark-2.0 -DskipTests'
  24. - MVN_FLAG='-Pspark-2.1 -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. - env: MVN_FLAG='-Pspark-2.2 -DskipTests'
  32. jdk: oraclejdk8
  33. - env: MVN_FLAG='-Pspark-2.2 -DskipITs'
  34. jdk: oraclejdk8
  35. jdk:
  36. - openjdk7
  37. addons:
  38. apt:
  39. sources:
  40. r-packages-trusty
  41. packages:
  42. r-base
  43. cache:
  44. pip: true
  45. directories:
  46. - $HOME/.m2
  47. - $(npm config get prefix)
  48. before_install:
  49. - sudo apt-get -y install python3-pip python-dev
  50. - sudo apt-get -y install libkrb5-dev
  51. - sudo apt-get -y remove python-setuptools
  52. - pip install --user --upgrade pip "setuptools < 36"
  53. - pip3 install --user --upgrade pip "setuptools < 36"
  54. - pip install --user codecov cloudpickle
  55. - pip3 install --user cloudpickle
  56. install:
  57. - mvn $MVN_FLAG install -Dskip -DskipTests -DskipITs -Dmaven.javadoc.skip=true -B -V
  58. before_script:
  59. - pip install --user requests pytest flaky flake8 requests-kerberos
  60. - pip3 install --user requests pytest flaky requests-kerberos
  61. script:
  62. - mvn $MVN_FLAG verify -e
  63. after_success:
  64. - bash <(curl -s https://codecov.io/bash)
  65. after_failure:
  66. - npm list -g azure-cli --depth=0 || npm install -g azure-cli
  67. - ./dev/travis-upload-logs.sh