.travis.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. language: rust
  2. # Caching of the runtime .wasm blob poses a problem.
  3. # See: https://github.com/Joystream/joystream/issues/466
  4. # Always starting with a clean slate is probably better, it allows us to ensure
  5. # the WASM runtime is always rebuilt. It also allows us to detect when certain upstream dependencies
  6. # sometimes break the build.
  7. # cache: cargo
  8. rust:
  9. - nightly
  10. matrix:
  11. include:
  12. - os: linux
  13. env: TARGET=x86_64-unknown-linux-gnu
  14. # Removed all other plaftorm builds sice the repo as growing in terms of activitly
  15. # and CI checks are taking long to start due to concurrent no. of jobs
  16. # one job should be sufficient for doing all manners of checks and unit nets, will defer
  17. # building all platform binanires and wasm blob to a different system
  18. install:
  19. - rustup target add wasm32-unknown-unknown --toolchain nightly
  20. # travis installs rust using rustup with the "minimal" profile so these tools are not installed by default
  21. - rustup component add rustfmt --tolchain nightly
  22. # choosing to add clippy for the nightly toolchain only
  23. # becuase we want to run it with nighly to avoid having to set BUILD_DUMMY_WASM_BINARY=0
  24. # setting that variable requires changing it in a later run of cargo bulid to ensure runtime/build.rs
  25. # actually builds the runtime .. the behaviour is a bit odd so choosing to avoid messing with it.
  26. - rustup component add clippy --toolchain nightly
  27. before_script:
  28. - cargo +nightly fmt --all -- --check
  29. script:
  30. # we set release as build type for all steps to benefit from already compiled packages in prior steps
  31. - cargo +nightly clippy --release --target=${TARGET} -- -D warnings
  32. - cargo +nightly test --release --verbose --all --target=${TARGET}
  33. - WASM_BUILD_TOOLCHAIN=nightly cargo +nightly build --release --target=${TARGET}
  34. before_deploy:
  35. - cp ./target/${TARGET}/release/joystream-node .
  36. - FILENAME=`./joystream-node --version | sed -e "s/ /-/g"`
  37. - tar -cf ${FILENAME}.tar ./joystream-node
  38. - gzip ${FILENAME}.tar
  39. - export ASSET=${FILENAME}.tar.gz
  40. deploy:
  41. - provider: releases
  42. api_key:
  43. secure: FfxZGQexxAGT0Skbctl1FuqmEvNHejPDPtNG8Du1ACSGjS7Y+M6o/aPqE6HL158AmddOgndsIPR+HM7VfMDAUMkLTbOhv3nMpDBZu1h25vwk+jHOM65tm5LWUu/ROWBpaAQiG7NKrvtfkNfbNBSETsEbWBt/DPrhlIfSbgsXBFDiid7uRrCiwvDUJ097/EUOJ9OVUrk+O4ebSzfIfKPGPtRU2rQQ0eNX7yX3TCm3jbQm/kplkQNRL9mnAJNxtKuvuko4LqZ6jN4XLoLTHUMjO7E0r6wXVB4GVjA4HA214eLlQD6BhgTbWMDxKgWyuKzPG+2GLKyluSSn0RurSl8tYryXKxKxuN3H1FX9r23a8AzGtpRACJtIePC2YmPuQRSnz2Bw8jlSP2WPLJtXGD036J/wVMj6W9TROm7IBigiC7QlqAqCYNByOnoKyhRCgYyAJZb0Jpa3qWaFhA6b6gCGhyH85QCcrc0q6JAB3oqH8Wfm/K2HVzBobmKaSFu5DpwInNnUXnLWGVzhSt3oCq6ld773izReGdLJtLC2vaJ9rZVaVw29s9M662EEuAGgaVLO/sinZJFeIIaCF4i4zUXwXSLIdfKXGOR0ZibkyT2FS6qPGvl/lLN5IREzD7v/rV8htGMLmw4jpPLNskvRjCHX42ewRRYdMvZzQQOAvSlWcsw=
  44. file: ${ASSET}
  45. on:
  46. tags: true
  47. repo: Joystream/joystream
  48. draft: true
  49. overwrite: true
  50. skip_cleanup: true
  51. - provider: releases
  52. api_key:
  53. secure: FfxZGQexxAGT0Skbctl1FuqmEvNHejPDPtNG8Du1ACSGjS7Y+M6o/aPqE6HL158AmddOgndsIPR+HM7VfMDAUMkLTbOhv3nMpDBZu1h25vwk+jHOM65tm5LWUu/ROWBpaAQiG7NKrvtfkNfbNBSETsEbWBt/DPrhlIfSbgsXBFDiid7uRrCiwvDUJ097/EUOJ9OVUrk+O4ebSzfIfKPGPtRU2rQQ0eNX7yX3TCm3jbQm/kplkQNRL9mnAJNxtKuvuko4LqZ6jN4XLoLTHUMjO7E0r6wXVB4GVjA4HA214eLlQD6BhgTbWMDxKgWyuKzPG+2GLKyluSSn0RurSl8tYryXKxKxuN3H1FX9r23a8AzGtpRACJtIePC2YmPuQRSnz2Bw8jlSP2WPLJtXGD036J/wVMj6W9TROm7IBigiC7QlqAqCYNByOnoKyhRCgYyAJZb0Jpa3qWaFhA6b6gCGhyH85QCcrc0q6JAB3oqH8Wfm/K2HVzBobmKaSFu5DpwInNnUXnLWGVzhSt3oCq6ld773izReGdLJtLC2vaJ9rZVaVw29s9M662EEuAGgaVLO/sinZJFeIIaCF4i4zUXwXSLIdfKXGOR0ZibkyT2FS6qPGvl/lLN5IREzD7v/rV8htGMLmw4jpPLNskvRjCHX42ewRRYdMvZzQQOAvSlWcsw=
  54. file: ${ASSET}
  55. on:
  56. branch: development
  57. repo: Joystream/joystream
  58. draft: true
  59. prerelease: true
  60. overwrite: true
  61. skip_cleanup: true