You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.2KB

  1. dist: trusty
  2. language: rust
  3. services: docker
  4. sudo: required
  5. env:
  6. global:
  7. - CRATE_NAME=gutenberg
  8. matrix:
  9. # TODO These are all the build jobs. Adjust as necessary. Comment out what you
  10. # don't need
  11. include:
  12. # Linux
  13. - env: TARGET=x86_64-unknown-linux-gnu
  14. - env: TARGET=x86_64-unknown-linux-musl
  15. # OSX
  16. - env: TARGET=x86_64-apple-darwin
  17. os: osx
  18. # Testing other channels
  19. - env: TARGET=x86_64-unknown-linux-gnu
  20. rust: beta
  21. - env: TARGET=x86_64-unknown-linux-gnu
  22. rust: nightly
  23. before_install: set -e
  24. install:
  25. - sh ci/install.sh
  26. - source ~/.cargo/env || true
  27. script:
  28. - bash ci/script.sh
  29. after_script: set +e
  30. before_deploy:
  31. - sh ci/before_deploy.sh
  32. deploy:
  33. # TODO update `api_key.secure`
  34. # - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new
  35. # - Encrypt it: `travis encrypt YOUR_TOKEN`
  36. # - Paste the output down here
  37. api_key:
  38. secure: X0M1TT06/MHfwaENl+u/K3twBU0BVTQimXfBkHzODWsWC84SGeJPMiovIkuBxq4P7Wk7sIr1d/IINlq0sK40IvI3Xwy95YtpTKcK52ffZjTmHSNExCy+OhW2JefNPOwPI89JWKsmHM1I8FuDRiENTyawVS8akcl1XnQhS3V3a1zEuwpULO+6UwDTauJDRdVenDY7tHxbwYH644djZpKcL3LsPLkv0r0XlWnyH+Lw65/ggUmw63KaZTN+hOYfznXGNjlsv2YSD8lCo7eGGg+WA1rsr1SDOxzMM60OOE2Y4lDo0lX9tPWAxMfltvuouxfZ8Y2II4oNEYQui+AqaZ6CfhjFrfZG5P6QdFcGcjiYhDC+s+R9m+tCtzCcKh+lahxcfwOEo1O9pAsg77XVy5gf9guM++9uhYc54Z7tUeyNyJQVaQHt0drmqqeQWfk8w2YBmTPiJ7mwAbhEU5gISWQBpc9eRM1PiOaWDOJHgyV1rZfOT6RxgKBu5DW4pSZ6Iar7Qc+u4ei80QRI2jVsnlPY8/5rl/z0fqSnOen/wyGQHNI18SwXiy0TbN8aMpwr9tllOBYtjrWoX4xCj8NJksl1EAYaE2Cwy768mSfO9FTMqGQpuG5S6M9BRsG5pOtZdKpxjyP8vJ1ahp8KDI9Mz8QJSfG6kOHXqCaed+MmJNxJYI0= file_glob: true
  39. file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
  40. on:
  41. # TODO Here you can pick which targets will generate binary releases
  42. # In this example, there are some targets that are tested using the stable
  43. # and nightly channels. This condition makes sure there is only one release
  44. # for such targets and that's generated using the stable channel
  45. condition: $TRAVIS_RUST_VERSION = stable
  46. tags: true
  47. provider: releases
  48. skip_cleanup: true
  49. cache: cargo
  50. before_cache:
  51. # Travis can't cache files that are not readable by "others"
  52. - chmod -R a+r $HOME/.cargo
  53. branches:
  54. only:
  55. # release tags
  56. - /^v\d+\.\d+\.\d+.*$/
  57. - master