.travis.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright 2014 The Closure Library Authors. All Rights Reserved.
  2. #
  3. # Use of this source code is governed by the Apache License, Version 2.0.
  4. # See the LICENSE file for details.
  5. language: node_js
  6. node_js:
  7. - "8"
  8. sudo: required
  9. # This is required for Java 8 in non-java image
  10. dist: trusty
  11. cache:
  12. directories:
  13. - node_modules
  14. - closure-deps/node_modules
  15. install:
  16. # We need jdk8 for JsDossier; but this needs to come first because
  17. # otherwise there is no java at all.
  18. - jdk_switcher use oraclejdk8
  19. - ./scripts/ci/install_closure_deps.sh
  20. before_script:
  21. - ./scripts/http/simple_http_server.py 2> /dev/null & sleep 5
  22. # Unit tests are disabled (below)
  23. #- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash ./scripts/ci/sauce_connect.sh; fi'
  24. # Ensure we point to the version of clang-format that we installed in
  25. # install_closure_deps.sh. Travis has an older version on the $PATH and
  26. # clang-format-diff.py invokes "clang-format" with no option of specifying
  27. # a binary path.
  28. - export PATH=$PWD/../clang/bin/:$PATH
  29. # Make a directory for gh-pages; will be used by both generate_latest_docs.sh
  30. # and deploy_latest_docs.sh.
  31. - export GH_PAGES=$(mktemp -d)
  32. script:
  33. - ./scripts/ci/generate_latest_docs.sh
  34. - ./scripts/ci/compile_closure.sh
  35. - ./scripts/ci/lint_pull_request.sh
  36. - ./scripts/ci/check_code_format.sh
  37. - ./scripts/ci/test_closuredeps.sh
  38. # Disable unit tests
  39. # - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then travis_wait 30 ./scripts/ci/run_all_tests.sh; fi'
  40. after_success:
  41. - ./scripts/ci/push_latest_docs.sh
  42. env:
  43. global:
  44. - SAUCE_USERNAME=closure-sauce
  45. - secure: "LhIlKzzLU9prwCg+p4Ay3bpyeb2drLqrzHHg+xPzNiTA2UUYPW0fYyBtHIjDUgaNRftnlRXhu678iL2U7PEB2ONk4m70TI8Ch0/yBImAklwszxOYgNTljeKV2poYrSBcUandA9kVavzLqdLg8HUlVurURI/dQy4WwwrKUftHudc="
  46. - secure: "aEv7CF6ZvD2Fa67yv6yYtgFGjafCkpSP2Y+Dk2AyJCFLF3+L5ZFXpFoCtgYgCWezVDbeGpoojFeCzLu0ycWwnIwJpUQ/C8NBDR/x2Lqz2I6M2PfkEy91UhSE5nXe1RJMnna1715zeBmustiFKjdETWFZrpvxkHixBHbLfY3cJZw="
  47. addons:
  48. apt:
  49. packages:
  50. # Required for jdk_switcher use oraclejdk8
  51. - oracle-java8-installer