You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.6 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. language: c
  2. os: linux
  3. dist: bionic
  4. services:
  5. - docker
  6. env:
  7. global:
  8. - DEBIAN_RELEASE='buster'
  9. - DOCKER_PWD='/root'
  10. - DOCKER_IMAGE="debian:${DEBIAN_RELEASE}"
  11. - GO_VERSION='1.15.5'
  12. matrix:
  13. - GOOS='dragonfly' GOARCH='amd64'
  14. - GOOS='freebsd' GOARCH='amd64'
  15. - GOOS='freebsd' GOARCH='arm'
  16. - GOOS='linux' GOARCH='arm'
  17. - GOOS='linux' GOARCH='arm64'
  18. - GOOS='linux' GOARCH='mips'
  19. - GOOS='linux' GOARCH='mips64'
  20. - GOOS='linux' GOARCH='mips64le'
  21. - GOOS='linux' GOARCH='mipsle'
  22. - GOOS='linux' GOARCH='ppc64'
  23. - GOOS='linux' GOARCH='ppc64le'
  24. - GOOS='linux' GOARCH='s390x'
  25. - GOOS='netbsd' GOARCH='amd64'
  26. - GOOS='netbsd' GOARCH='arm'
  27. - GOOS='openbsd' GOARCH='amd64'
  28. - GOOS='openbsd' GOARCH='arm'
  29. before_install:
  30. - export MATTERMOST_RELEASE="$(grep 'mattermost' dependabot/go.mod | cut -d' ' -f3)"
  31. - docker pull "${DOCKER_IMAGE}"
  32. - chmod +x build.sh
  33. script:
  34. - docker run --interactive=true --mount="type=bind,source=${PWD},destination=${DOCKER_PWD}" --rm=true --tty=true --workdir="${DOCKER_PWD}" -e DEBIAN_RELEASE -e MATTERMOST_RELEASE -e GOOS -e GOARCH "${DOCKER_IMAGE}" ./build.sh
  35. before_deploy:
  36. - git config --local user.name 'Travis CI'
  37. - git config --local user.email 'travis@travis-ci.org'
  38. - git tag "${MATTERMOST_RELEASE}" || true
  39. deploy:
  40. provider: releases
  41. api_key: "${GITHUB_OAUTH_TOKEN}"
  42. file:
  43. - "${TRAVIS_BUILD_DIR}/mattermost-${MATTERMOST_RELEASE}-${GOOS}-${GOARCH}.tar.gz"
  44. - "${TRAVIS_BUILD_DIR}/mattermost-${MATTERMOST_RELEASE}-${GOOS}-${GOARCH}.tar.gz.sha512sum"
  45. skip_cleanup: true