Skip to content
Snippets Groups Projects
.travis.yml 1.56 KiB
Newer Older
Brandon's avatar
Brandon committed
language: rust
Brandon's avatar
Brandon committed
os:
Brandon's avatar
Brandon committed
- linux
- osx
Brandon's avatar
Brandon committed
arch:
Brandon's avatar
Brandon committed
- amd64
- arm64
services:
Brandon's avatar
Brandon committed
- docker
Brandon's avatar
Brandon committed
before_install:
- rustup component add rustfmt
rust:
Brandon's avatar
Brandon committed
- stable
- beta
Brandon's avatar
Brandon committed
jobs:
  fast_finish: true
Brandon's avatar
Brandon committed
script:
- cargo build
- cargo test
- "ulimit -n 5000; cargo test timelimits:: -- --ignored --test-threads=1 --show-output"
Brandon's avatar
Brandon committed
- cargo fmt -- --check
Brandon's avatar
Brandon committed
after_failure:
Brandon's avatar
Brandon committed
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- "./send.sh failure $WEBHOOK_URL"
after_success: |
  if [ -n "${GITHUB_TOKEN}" ]; then
    [ "${TRAVIS_BRANCH} " = master ] &&
    [ "${TRAVIS_PULL_REQUEST}" = false ] &&
    cargo doc &&
    echo "<meta http-equiv=refresh content=0;url=rustscan/index.html>" > target/doc/index.html &&
    sudo pip install ghp-import &&
    ghp-import -n target/doc &&
    git push -fq https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
  fi
Brandon's avatar
Brandon committed
env:
  global:
    secure: Gf24LG7Hr3Q0drWyPrvISTL35Z57DxdS/wIOo7v+ZdauzY3Qjvv3Lh4TY//C4sdN0g1CLj4yjg7LQOqF4XRdh2Qah7JZPv/i2B5uz9nwjTsoRzmmMWML9VtfT1u53nSFqsNeXbvpmoNG9rfMXcoiyd+Lv+EgniHphDEBlXvS9n9KMcpOi1F2x7bsH0EK37wQYKMTpCCd5TPUPdZou7BJNiZS3ikRLpTRFF7uIN4gYtRH9kU5uBSphWgnJ6eBm2ItzZcUPOgrjAoF4RkmZAzGG4idDh1Qkf3No3nZwT3U5NSk8h7owtJ4oADlRgYqYKCB4YcC9cAKCJgDsyMlKKMkEyagvw1seFnBLCY3ljsW4EklpVEZ0rVqZOx4pTkIaxIxytLTC9pHmdDSnhdhFknOcVAQQWjg+nAZfD07QUeAqUdr0i/vxQoZitvbNY0znzEarycE1waKvwlkiB4gt385U1CBfYldydnOnRKkdtLNrCLClu13HU0djmSXMhojQJhTuNxTHtZAf5fKcWIWwkVbNZ5MNKYjQh4rKufqW3o1iHphB8dfAGsDEPv0RQMtVbu6H4+clCouLkFlxHOIrrOJ5SXQ8cIATPhnJR7y4cSDdRaN0DRLRjeLAIKlbOGBtNuFC+BftocaTY5qN42aKAMqQcT30ycfiLuRVJNiQJ5pkto=