A now defunct web server engine that is notable for its overuse of unsafe code, the memory safety bugs caused by that, and its deletion by its creator.
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.

62 lines
1.9 KiB

  1. language: rust
  2. sudo: required
  3. dist: trusty
  4. cache:
  5. # cargo: true
  6. apt: true
  7. matrix:
  8. include:
  9. - rust: stable
  10. - rust: beta
  11. - rust: nightly-2019-11-20
  12. allow_failures:
  13. - rust: nightly-2019-11-20
  14. env:
  15. global:
  16. # - RUSTFLAGS="-C link-dead-code"
  17. - OPENSSL_VERSION=openssl-1.0.2
  18. before_install:
  19. - sudo add-apt-repository -y ppa:0k53d-karl-f830m/openssl
  20. - sudo apt-get update -qq
  21. - sudo apt-get install -y openssl libssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
  22. before_cache: |
  23. if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-11-20" ]]; then
  24. RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install --version 0.6.11 cargo-tarpaulin
  25. fi
  26. # Add clippy
  27. before_script:
  28. - export PATH=$PATH:~/.cargo/bin
  29. script:
  30. - cargo update
  31. - cargo check --all --no-default-features
  32. - |
  33. if [[ "$TRAVIS_RUST_VERSION" == "stable" || "$TRAVIS_RUST_VERSION" == "beta" ]]; then
  34. cargo test --all-features --all -- --nocapture
  35. cd actix-http; cargo test --no-default-features --features="rustls" -- --nocapture; cd ..
  36. cd awc; cargo test --no-default-features --features="rustls" -- --nocapture; cd ..
  37. fi
  38. # Upload docs
  39. after_success:
  40. - |
  41. if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
  42. cargo doc --no-deps --all-features &&
  43. echo "<meta http-equiv=refresh content=0;url=os_balloon/index.html>" > target/doc/index.html &&
  44. git clone https://github.com/davisp/ghp-import.git &&
  45. ./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc &&
  46. echo "Uploaded documentation"
  47. fi
  48. - |
  49. if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-11-20" ]]; then
  50. taskset -c 0 cargo tarpaulin --out Xml --all --all-features
  51. bash <(curl -s https://codecov.io/bash)
  52. echo "Uploaded code coverage"
  53. fi