.travis.yml (3447B)
1 # Based on the "trust" template v0.1.1 2 # https://github.com/japaric/trust/tree/v0.1.1 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=hangups 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 # Linux 22 - env: TARGET=i686-unknown-linux-gnu 23 - env: TARGET=i686-unknown-linux-musl 24 - env: TARGET=x86_64-unknown-linux-gnu 25 - env: TARGET=x86_64-unknown-linux-musl 26 27 # OSX 28 - env: TARGET=i686-apple-darwin 29 os: osx 30 - env: TARGET=x86_64-apple-darwin 31 os: osx 32 33 # *BSD 34 - env: TARGET=i686-unknown-freebsd DISABLE_TESTS=1 35 - env: TARGET=x86_64-unknown-freebsd DISABLE_TESTS=1 36 - env: TARGET=x86_64-unknown-netbsd DISABLE_TESTS=1 37 38 # Other architectures 39 - env: TARGET=aarch64-unknown-linux-gnu 40 - env: TARGET=armv7-unknown-linux-gnueabihf 41 - env: TARGET=mips-unknown-linux-gnu 42 - env: TARGET=mips64-unknown-linux-gnuabi64 43 - env: TARGET=mips64el-unknown-linux-gnuabi64 44 - env: TARGET=mipsel-unknown-linux-gnu 45 - env: TARGET=powerpc-unknown-linux-gnu 46 - env: TARGET=powerpc64-unknown-linux-gnu 47 - env: TARGET=powerpc64le-unknown-linux-gnu 48 - env: TARGET=s390x-unknown-linux-gnu DISABLE_TESTS=1 49 50 # Testing other channels 51 - env: TARGET=x86_64-unknown-linux-gnu 52 rust: nightly 53 - env: TARGET=x86_64-apple-darwin 54 os: osx 55 rust: nightly 56 57 before_install: set -e 58 59 install: 60 - sh ci/install.sh 61 - source ~/.cargo/env || true 62 63 script: 64 - bash ci/script.sh 65 66 after_script: set +e 67 68 before_deploy: 69 - sh ci/before_deploy.sh 70 71 deploy: 72 # TODO update `api_key.secure` 73 # - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new 74 # - Encrypt it: `travis encrypt 0123456789012345678901234567890123456789 75 # - Paste the output down here 76 api_key: 77 secure: kY4LPIMa4mQjbquQV40YhVyxvD+yJUTl5in8AHbICO78AXos9wOWQ9Dbv0loSjOZjuj7eKgLRmtZRrfpPvEI6sje3IzE/ROyUkNSouUa8raL49A6in42281gy+Atcl0rpG6a4lpOA3nT4hSiypUztDcALZpPAG+ftv0yjyaHuur42WGk48ZVsTNb69qQWaIsN7SGsdsi2mqUotRhcON4tJL358G/eRsx5FznLIo+s6jOvtdijnZaJYi5tkfHglS8ZfgOJdPac98t4kEL86SHBvvj3UJUwZGeNuK76D12soVeSwJp7DEO1TrJFvj3hpHCZV44dnnuFldv7K3DGVgsc6zYY8/l84ovht58tDgtCBfDJl+ef8cfwDUKaWfZ7ET25gEdvA7OE06t1dhCmLrutfr03ZEIXN8OZCfnWJexSaT8XCxy+ntb2/SL6IdMKvoDPcCWT0ocA4z4A8TOHIYi3h6vkvgTNdwDYse66LL96BLQ2utFPcCPB5RW79heGLcUchkr0ZEzFi8Oe1JWdKLbibtJiLUovZsCAklydyhTEzprcEzfxXa0mn3jPUmmekta9vkQuCL7tXDDLxYsiPOwVhOh7/+3kgTZdJnaIgP6zFw7HMEBgKrEwo1B0Gzo79LhLmlvT3yNE2K1xtYrNT1E3aV45pkQf4d2kke0OAOza5E= 78 file_glob: true 79 file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.* 80 on: 81 # TODO Here you can pick which targets will generate binary releases 82 # In this example, there are some targets that are tested using the stable 83 # and nightly channels. This condition makes sure there is only one release 84 # for such targets and that's generated using the stable channel 85 condition: $TRAVIS_RUST_VERSION = stable 86 tags: true 87 provider: releases 88 skip_cleanup: true 89 90 cache: cargo 91 before_cache: 92 # Travis can't cache files that are not readable by "others" 93 - chmod -R a+r $HOME/.cargo 94 95 branches: 96 only: 97 # release tags 98 - /^v\d+\.\d+\.\d+.*$/ 99 - master 100 101 notifications: 102 email: 103 on_success: never