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.

65 lines
1.7KB

  1. dist: trusty
  2. language: rust
  3. services: docker
  4. env:
  5. global:
  6. - CRATE_NAME=gutenberg
  7. matrix:
  8. include:
  9. # Linux
  10. - env: TARGET=x86_64-unknown-linux-gnu
  11. # OSX
  12. - env: TARGET=x86_64-apple-darwin
  13. os: osx
  14. # Testing other channels
  15. - env: TARGET=x86_64-unknown-linux-gnu
  16. rust: beta
  17. - env: TARGET=x86_64-unknown-linux-gnu
  18. rust: nightly
  19. # The earliest stable Rust version that works
  20. - env: TARGET=x86_64-unknown-linux-gnu
  21. rust: 1.23.0
  22. before_install: set -e
  23. install:
  24. - sh ci/install.sh
  25. - source ~/.cargo/env || true
  26. script:
  27. - bash ci/script.sh
  28. after_script: set +e
  29. before_deploy:
  30. - sh ci/before_deploy.sh
  31. deploy:
  32. api_key:
  33. secure: X0M1TT06/MHfwaENl+u/K3twBU0BVTQimXfBkHzODWsWC84SGeJPMiovIkuBxq4P7Wk7sIr1d/IINlq0sK40IvI3Xwy95YtpTKcK52ffZjTmHSNExCy+OhW2JefNPOwPI89JWKsmHM1I8FuDRiENTyawVS8akcl1XnQhS3V3a1zEuwpULO+6UwDTauJDRdVenDY7tHxbwYH644djZpKcL3LsPLkv0r0XlWnyH+Lw65/ggUmw63KaZTN+hOYfznXGNjlsv2YSD8lCo7eGGg+WA1rsr1SDOxzMM60OOE2Y4lDo0lX9tPWAxMfltvuouxfZ8Y2II4oNEYQui+AqaZ6CfhjFrfZG5P6QdFcGcjiYhDC+s+R9m+tCtzCcKh+lahxcfwOEo1O9pAsg77XVy5gf9guM++9uhYc54Z7tUeyNyJQVaQHt0drmqqeQWfk8w2YBmTPiJ7mwAbhEU5gISWQBpc9eRM1PiOaWDOJHgyV1rZfOT6RxgKBu5DW4pSZ6Iar7Qc+u4ei80QRI2jVsnlPY8/5rl/z0fqSnOen/wyGQHNI18SwXiy0TbN8aMpwr9tllOBYtjrWoX4xCj8NJksl1EAYaE2Cwy768mSfO9FTMqGQpuG5S6M9BRsG5pOtZdKpxjyP8vJ1ahp8KDI9Mz8QJSfG6kOHXqCaed+MmJNxJYI0=
  34. file_glob: true
  35. file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
  36. on:
  37. condition: $TRAVIS_RUST_VERSION = stable
  38. tags: true
  39. provider: releases
  40. skip_cleanup: true
  41. cache: cargo
  42. before_cache:
  43. # Travis can't cache files that are not readable by "others"
  44. - chmod -R a+r $HOME/.cargo
  45. branches:
  46. only:
  47. # release tags
  48. - /^v\d+\.\d+\.\d+.*$/
  49. - master
  50. notifications:
  51. email: false