|
| 1 | +# Based on the "trust" template v0.1.2 |
| 2 | +# https://github.com/japaric/trust/tree/v0.1.2 |
| 3 | + |
| 4 | +dist: trusty |
| 5 | +language: rust |
| 6 | +services: docker |
| 7 | +sudo: required |
| 8 | + |
| 9 | +# TODO Rust builds on stable by default, this can be |
| 10 | +# overridden on a case by case basis down below. |
| 11 | + |
| 12 | +env: |
| 13 | + global: |
| 14 | + # TODO Update this to match the name of your project. |
| 15 | + - CRATE_NAME=Hela |
| 16 | + |
| 17 | +matrix: |
| 18 | + # TODO These are all the build jobs. Adjust as necessary. Comment out what you |
| 19 | + # don't need |
| 20 | + include: |
| 21 | + # Android |
| 22 | + # - env: TARGET=aarch64-linux-android DISABLE_TESTS=1 |
| 23 | + # - env: TARGET=arm-linux-androideabi DISABLE_TESTS=1 |
| 24 | + # - env: TARGET=armv7-linux-androideabi DISABLE_TESTS=1 |
| 25 | + # - env: TARGET=i686-linux-android DISABLE_TESTS=1 |
| 26 | + # - env: TARGET=x86_64-linux-android DISABLE_TESTS=1 |
| 27 | + |
| 28 | + # # iOS |
| 29 | + # - env: TARGET=aarch64-apple-ios DISABLE_TESTS=1 |
| 30 | + # os: osx |
| 31 | + # - env: TARGET=armv7-apple-ios DISABLE_TESTS=1 |
| 32 | + # os: osx |
| 33 | + # - env: TARGET=armv7s-apple-ios DISABLE_TESTS=1 |
| 34 | + # os: osx |
| 35 | + # - env: TARGET=i386-apple-ios DISABLE_TESTS=1 |
| 36 | + # os: osx |
| 37 | + # - env: TARGET=x86_64-apple-ios DISABLE_TESTS=1 |
| 38 | + # os: osx |
| 39 | + |
| 40 | + # Linux |
| 41 | + - env: TARGET=aarch64-unknown-linux-gnu |
| 42 | + - env: TARGET=arm-unknown-linux-gnueabi |
| 43 | + - env: TARGET=armv7-unknown-linux-gnueabihf |
| 44 | + - env: TARGET=i686-unknown-linux-gnu |
| 45 | + - env: TARGET=i686-unknown-linux-musl |
| 46 | + - env: TARGET=mips-unknown-linux-gnu |
| 47 | + - env: TARGET=mips64-unknown-linux-gnuabi64 |
| 48 | + - env: TARGET=mips64el-unknown-linux-gnuabi64 |
| 49 | + - env: TARGET=mipsel-unknown-linux-gnu |
| 50 | + - env: TARGET=powerpc-unknown-linux-gnu |
| 51 | + - env: TARGET=powerpc64-unknown-linux-gnu |
| 52 | + - env: TARGET=powerpc64le-unknown-linux-gnu |
| 53 | + - env: TARGET=s390x-unknown-linux-gnu DISABLE_TESTS=1 |
| 54 | + - env: TARGET=x86_64-unknown-linux-gnu |
| 55 | + - env: TARGET=x86_64-unknown-linux-musl |
| 56 | + |
| 57 | + # OSX |
| 58 | + - env: TARGET=i686-apple-darwin |
| 59 | + os: osx |
| 60 | + - env: TARGET=x86_64-apple-darwin |
| 61 | + os: osx |
| 62 | + |
| 63 | + # *BSD |
| 64 | + - env: TARGET=i686-unknown-freebsd DISABLE_TESTS=1 |
| 65 | + - env: TARGET=x86_64-unknown-freebsd DISABLE_TESTS=1 |
| 66 | + - env: TARGET=x86_64-unknown-netbsd DISABLE_TESTS=1 |
| 67 | + |
| 68 | + # Windows |
| 69 | + - env: TARGET=x86_64-pc-windows-gnu |
| 70 | + |
| 71 | + # Bare metal |
| 72 | + # These targets don't support std and as such are likely not suitable for |
| 73 | + # most crates. |
| 74 | + # - env: TARGET=thumbv6m-none-eabi |
| 75 | + # - env: TARGET=thumbv7em-none-eabi |
| 76 | + # - env: TARGET=thumbv7em-none-eabihf |
| 77 | + # - env: TARGET=thumbv7m-none-eabi |
| 78 | + |
| 79 | + # Testing other channels |
| 80 | + - env: TARGET=x86_64-unknown-linux-gnu |
| 81 | + rust: nightly |
| 82 | + - env: TARGET=x86_64-apple-darwin |
| 83 | + os: osx |
| 84 | + rust: nightly |
| 85 | + |
| 86 | +before_install: |
| 87 | + - set -e |
| 88 | + - rustup self update |
| 89 | + |
| 90 | +install: |
| 91 | + - sh ci/install.sh |
| 92 | + - source ~/.cargo/env || true |
| 93 | + |
| 94 | +script: |
| 95 | + - bash ci/script.sh |
| 96 | + |
| 97 | +after_script: set +e |
| 98 | + |
| 99 | +before_deploy: |
| 100 | + - sh ci/before_deploy.sh |
| 101 | + |
| 102 | +deploy: |
| 103 | + # TODO update `api_key.secure` |
| 104 | + # - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new |
| 105 | + # - Encrypt it: `travis encrypt 0123456789012345678901234567890123456789 |
| 106 | + # - Paste the output down here |
| 107 | + api_key: |
| 108 | + secure: bEZ9Ae4EduOu9U/PW9Le7o9VdCbf/jGopc5CB+sNCWDWsecInYUcamfHZP1yz7nG3RaRagARaaU1Lf7mSyRVIyAFI6YwC2F9atnHUCpir19RHXVZMrTB9vYepTKEFBwEVYREgxFj3G4249RqBbZ8FRxGDlaZI9DNk92PNFvrx6w2ehu82619hwEkpe3+asCuRun1umqDCdl0ZVN0d7uXBrGdTrVmRY5DWg1gUqDQX1hT76w3rJej2cev/M9CZhI2Z9fXVcF2Rs1vz0o9X66xBR7m/FQyzYSdvShKl2rIPjhHYmZSvG/b6KPhz/GxNwH5hzGnMOXXYjeTIWFiKWvA8wVIBggtp69VjSo13737J5f1yqOWG+r3CQ3ZRm+yY0SpMig5K9L1LS5B732/8Eiy+y6IBuwLLaMrqDVSx0WdARLyuBTM0rwVIufrw+xQkJNfQrSnPj0mVn2UZWO6+NqTdbs1OuiRrCeiEg/I5eJB0xViGoSlM/NF2AE6Cl15knMf872GIEpmMxJ/LMINnhnfLkkx4YVkM/ZDgidIOQ4e7BESFC7UBe67S7f5wmroyvgD1pSr7W2sdt51AxEzNPpa1lfLXnh39hm3666wTiplm8kRRCUmpwPEZ7zQiUZO9TlNWU8jUopVJO6j7FmamlHjTSAzZn96BM+mOch0b8BCcX8= |
| 109 | + file_glob: true |
| 110 | + file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.* |
| 111 | + on: |
| 112 | + # TODO Here you can pick which targets will generate binary releases |
| 113 | + # In this example, there are some targets that are tested using the stable |
| 114 | + # and nightly channels. This condition makes sure there is only one release |
| 115 | + # for such targets and that's generated using the stable channel |
| 116 | + condition: $TRAVIS_RUST_VERSION = stable |
| 117 | + tags: true |
| 118 | + provider: releases |
| 119 | + skip_cleanup: true |
| 120 | + |
| 121 | +cache: cargo |
| 122 | +before_cache: |
| 123 | + # Travis can't cache files that are not readable by "others" |
| 124 | + - chmod -R a+r $HOME/.cargo |
| 125 | + |
| 126 | +branches: |
| 127 | + only: |
| 128 | + # release tags |
| 129 | + - /^v\d+\.\d+\.\d+.*$/ |
| 130 | + - master |
| 131 | + |
| 132 | +notifications: |
| 133 | + email: |
| 134 | + on_success: never |
0 commit comments