.travis.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. language: rust
  2. rust:
  3. - 1.41.1
  4. cache:
  5. cargo
  6. os:
  7. - linux:
  8. - env:
  9. - TARGET=x86_64-unknown-linux-gnu
  10. - osx:
  11. - env:
  12. - TARGET=x86_64-apple-darwin
  13. - windows:
  14. - env:
  15. - TARGET=x86_64-pc-windows-msvc
  16. before_script:
  17. - rustup component add rustfmt
  18. - rustup update nightly
  19. - rustup target add ${TARGET}
  20. - rustup target add wasm32-unknown-unknown --toolchain nightly
  21. # Since the WASM builder now directly builds the runtime,
  22. # I don't think we need the commandline version anymore.
  23. # - cargo +nightly install --git https://github.com/alexcrichton/wasm-gc --force
  24. script:
  25. - cargo fmt --all -- --check
  26. - cargo build --release --target=${TARGET}
  27. - mv ./target/${TARGET}/release/joystream-node .
  28. - export FILENAME=`./joystream-node --version | sed -e "s/ /-/g"`
  29. - tar -cf ${FILENAME}.tar ./joystream-node
  30. - gzip ${FILENAME}.tar
  31. deploy:
  32. provider: releases
  33. api_key:
  34. secure: icPiO8fnOgkHlo2MpUJvH+sZSaxJqzHif/1Pndlxg2jM/jrvLbUCr9UvtLaRQYPi2BVnR41t2m56uMJD3LktKMzAwUP74JcdX7iw6tq+iyvuU4UBsn5+k8pgue+eE34PVN0vNbDS+RVzzc6wG/vhUyKNKz6M1pOuEBx0s6UX3oED16W1LEN8/CHmFVBxQehlGv40Mje6tSmfZMw++efAmFm9vd0Fx8ub8as5ZqyjGv2IwbQlyIGT3SF9yx2va90F2wOxyZM7wgWzA/XIzlDGy+zvZssEYNGQhepUdGwTwwe+YLvZWuttTC218K4H8aireO2vCMti58veX7hVuDz6j6ETVxhr6Nv47HfxQF4IywDTUH1JGlLVadgcKQXUlVRrfy1tBKDq76ppMul8TdS0LgojeTgcJOblKw0V5TMwx+IYmMabVIZQ7Q7xKqf4SeXxh/YL3EUWBvzu1TUn946CB3jLATUxjGyjAZ00BN01QL7chrkcewInlKxJ/wjUqM34KnHNXXgPNADW+c5IIsl82BwnPsPK37WMfW5FaKtOn0YXQWj9QwtEX7VakNnPZZRvpsl2Ftd1As7hPgufMk8NbXmiQH8i0h1W0xcHQ38hvegIpf1fa8JA7VIFBP6ElymMTIus5xD5rsLGzPqgazm/328p2DthJWebyLAZIbEX+I4=
  35. file: ${FILENAME}.tar.gz
  36. skip_cleanup: true
  37. on:
  38. tags: true
  39. branch: development
  40. draft: true
  41. prerelease: true
  42. overwrite: true