No Description
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.

.travis.yml 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Created by the Rust CI generator: https://github.com/bspeice/rust-ci
  2. dist: trusty
  3. language: rust
  4. # Used during coverage to build kcov
  5. addons:
  6. apt:
  7. packages:
  8. - libcurl4-openssl-dev
  9. - libelf-dev
  10. - libdw-dev
  11. - binutils-dev
  12. env:
  13. global:
  14. # CARGO_TOKEN
  15. secure: sU1O2DIBOmCN0W5sAwIfsNr5AtGb2zGlIH3uNo9uuiVvzpL0iyoPQThSjOIHbZlpcn3OttpyH/8jltdXBJPrDmO+JzBoHkZHahUZgUVFdanqvttOQfKtTSg2V90WABVWqNWASuAZwGEbJ2NhSTHNj3qYS0A8kMaatYA+ezdrFXAOaaXgLVdUP/hFSmQeTYDPNtAVxcHxzSpCDInbkfQn3A5940lPGXzQ7bs/2p6WwtIEUuKFOOYt715hxmzMb2vyd/D65h8TjYG2LXKfBL84hjyn2DpmAIkZszHNkZ5UUzmU8WO2WR2CGgol6+qhkpZcupv8kZQSzT1ZvU5ZGRAClsr8v7zUA57RB/gkVRdOkSgE8pzC4DTdcDSNau3r03ihAF26nP7bz/Icnjm506UJVJCgZy3+tmMWdkppb+q/47LZ4qnnJtcXaWDVy1zVs/nyVL2xm8W3ZNQcFsxP0t86qh4U3S+ylpSDcl9g39VHWtGMdlt0oQ1RsaAOJ5avgUsJO9uLXkOlEc3GadooSpJ8A36kdK9/I3KTDMgk5RLK03jRvgaEZ2W4Xbu4YKO0LO4OENVyuFhhn4/KZSGbKBnuS/g45X8GEWDoiEly8uX8UBwL/MKB8hMUlFSJzxQMG1hAtSIZM6tX+wl2Mjg1h4SBqBjXK8BjHeEXYmw6IT7GNkg=
  16. matrix:
  17. include:
  18. # Uniquely identifies the build that uploads to codecov.io
  19. - env: CODECOV=TRUE
  20. rust: nightly
  21. # Uniquely identifies the build that uploads to crates.io
  22. - env: CRATESIO=TRUE
  23. rust: nightly
  24. - rust: 1.31.0
  25. - rust: nightly
  26. os: osx
  27. - rust: stable
  28. os: osx
  29. - rust: beta
  30. os: osx
  31. - rust: nightly
  32. - rust: stable
  33. - rust: beta
  34. before_install:
  35. - set -e
  36. - rustup self update
  37. install:
  38. - source ~/.cargo/env || true
  39. - rustup component add rustfmt
  40. script:
  41. - cargo fmt --all -- --check
  42. - |
  43. if [ -z "$TRAVIS_TAG" ]; then
  44. cargo test
  45. cargo test --release
  46. fi
  47. after_script: set +e
  48. after_success: |
  49. if [ -n "$TRAVIS_TAG" ] && [ -n "$CRATESIO" ]; then
  50. cd qadapt-macro &&
  51. cargo publish --token "$CARGO_TOKEN" &&
  52. cd .. &&
  53. cargo publish --token "$CARGO_TOKEN"
  54. elif [ -n "$CODECOV" ] && [ -z "$TRAVIS_TAG" ]; then
  55. # Build test coverage statistics
  56. wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && \
  57. tar xzf master.tar.gz && \
  58. cd kcov-master && \
  59. mkdir build && \
  60. cd build && \
  61. cmake .. && \
  62. make && \
  63. make install DESTDIR=../../kcov-build && \
  64. cd ../.. && \
  65. rm -rf kcov-master && \
  66. for file in target/debug/*-*[^\.d]; do \
  67. mkdir -p "target/cov/$(basename $file)"; \
  68. ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib,tests/ --verify "target/cov/$(basename $file)" "$file"; \
  69. done && \
  70. bash <(curl -s https://codecov.io/bash) && \
  71. echo "Uploaded code coverage"
  72. fi
  73. branches:
  74. only:
  75. - "/^v\\d+\\.\\d+\\.\\d+.*$/"
  76. - master