.travis.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. language: rust
  2. rust:
  3. - nightly-2018-12-06
  4. addons:
  5. config:
  6. retries: true
  7. cache:
  8. cargo: true
  9. directories:
  10. - /home/travis/.rvm
  11. services:
  12. - postgresql
  13. before_install:
  14. - sudo apt-get update -yqq
  15. - sudo apt-get install -yqq libpq-dev
  16. - wget https://github.com/sass/dart-sass/releases/download/1.14.2/dart-sass-1.14.2-linux-x64.tar.gz -O /tmp/dart-sass.tar.gz
  17. - tar xzvf /tmp/dart-sass.tar.gz
  18. - export PATH=$PWD/dart-sass:$PATH
  19. env:
  20. global:
  21. - secure: "UDGBd4vW7M4kMDQXp7Y/syTDU0TglHV5OCuv9b2S5aA3woPxFMl+qzfKNsexstYK49804oDt3jQO8e7aDDVkcOqWluhKSDAmOH8cqqYwfayGyuTy6f4rLmluOIoZ5Ak7gLnV/aufLWE8oxYRByq3OI0np4cdztHmcrvnaGIcVH43t7q4M7u+qKWsZfcEa0ftVO0zynShbiUNtWXek7iSt7YzJTDe4WzOYKeQ7W2lDGKX/642xjPO1NdpcsAidPGz4B8aZNVPiKDUbrptXkBEK04MvrVwI3KRX6JDsrkN29NXq0s+zbES+gWXwnHRhJ9GAqGiysqiNm7OY4zS4+sPSDSyJouSwg+VRwZ1TDDhLOTgKG208AJb10Nx2tKxmmM2z9l/aqkRhGcNneVCTPWLYR4a33KApzu7bsoom4VxtlBeIQDdG7gIxZu2bFxePVwbD/pS2P/9VdAMnE+7kracbJGvY4A8jiqRVlL9ozQ8+FUIB1+wK57KwbvZTabjr6JFB2pG8vkOuqGaA23KZeSOGDI3xR9FO2CRfBhm3GEOu0neGRqX8h79WNXaZ94W65qxVPY4s0S0NV7Rstz8usRWfGoas2QwJpPNaY9BESwi+4VNeQifsAWAUH+0QIlkvkS/k8bga3CJ2SGJp4IyH3m1nUF+hnHHlnHhm5WW6eVKK/o="
  22. - secure: "UV8N8yku3CKiUZByQ9Sy8kIL2O1xL6jxdnxN+OxO6wlwEdHZFGQA1takFO9i5aokdTnGJXBh25EnT31oPEsz7oJVz/8QMeuvg9prGOwKk2jeZdwwzfpgnrLDQTqV09TIOJ5Numle4AoyiotmbgjKaYSOU1yujGdonfGCeAcUpotgUPO97W8F7Il+RDjvLA3sKTSrvjf9RBglipNpb1T2gZT9oZCp9AGGQVwB2y/aLj6Io2zy3xc6OVG6uzTQYnKOkqyIK8KaYpE6NI0ACmg1EpuBTlCjBV2jM3S/4ycSLPHHmVVvvZBpFtlDFs0pd0yZPHv5PwG/duXJFs0/5+cTbbnRsQisWKazfbOPhR2XZOBmaCxAwI/W04pRrVJPAM05WNEGZCRU6w/ZMuBJFVvCjMhco5UhLZINCLQz3hodnVW7Wl5oP8dFfqV3NPQx8KhVnMhDxcWWwyTZeDkZalPXgX36Qo5T5tklQQ3/DiyiICLTrcePqaHlI/vEug+nGPZPQiX2pKttrDYKy2DTRk79vH2Rsw14NjTFUJZgzNHxT0xTampFJ+jkq1WXw0O+tnPQYqQYkf2aqzFrDwfakuKeGqUarJgaQeqm5CTYDETkQI7wSTtdB7srghYFS6fbhgvGqusus61LG+N7YMVirNsDLAOdcffpVWsNOMVHJAmp7b4="
  23. matrix:
  24. - MIGRATION_DIR=migrations FEATURES=postgres DATABASE_URL=postgres://postgres@localhost/rustodon
  25. before_script:
  26. - scripts/setup
  27. script:
  28. - cargo fmt -- --check
  29. - if [[ "$TRAVIS_BRANCH" == "master" ]]; then cargo build --release; else cargo build; fi
  30. - cargo test --all
  31. after_success: ./scripts/after_success.sh
  32. deploy:
  33. - provider: s3
  34. bucket: buildartifacts.glitch.social
  35. skip_cleanup: true
  36. access_key_id: $AWS_ACCESS_KEY_ID
  37. secret_access_key: $AWS_SECRET_ACCESS_KEY
  38. all_branches: true
  39. upload-dir: rustodon
  40. region: ca-central-1
  41. local_dir: buildartifacts
  42. on: &2
  43. repo: rustodon/rustodon
  44. - provider: codedeploy
  45. bucket: buildartifacts.glitch.social
  46. access_key_id: $AWS_ACCESS_KEY_ID
  47. secret_access_key: $AWS_SECRET_ACCESS_KEY
  48. key: rustodon/latest.zip
  49. bundle_type: zip
  50. application: rustodon
  51. deployment-group: rustodon-continuousdelivery
  52. region: ca-central-1
  53. on: *2