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.

83 lines
2.9KB

  1. language: c
  2. dist: trusty
  3. sudo: true
  4. addons:
  5. apt:
  6. packages:
  7. - mingw-w64
  8. - libgl1-mesa-dev
  9. - libsdl2-dev
  10. - libfreetype6-dev
  11. - libxxf86vm-dev
  12. env:
  13. global:
  14. - MAKEFLAGS=-j4
  15. matrix:
  16. include:
  17. - os: linux
  18. - os: linux
  19. env: CC= PLATFORM="mingw32" ARCH="x86_64" DEFAULT_HOMEDIR=.
  20. - os: linux
  21. env: CC= PLATFORM="mingw32" ARCH="x86" DEFAULT_HOMEDIR=.
  22. - os: osx
  23. script:
  24. - |
  25. set -e
  26. make all
  27. if [[ $TRAVIS_OS_NAME == osx ]]; then
  28. make all ARCH=x86
  29. fi
  30. make all ARCHIVE=1 -j1
  31. set +e
  32. notifications:
  33. email: false
  34. # Should have been in before_deploy: https://github.com/travis-ci/travis-ci/issues/2570
  35. after_success:
  36. - |
  37. cd build
  38. ls -al
  39. rm -rf */
  40. version=$(git show -s --pretty=format:%ad-%h --date=short)
  41. for file in *.zip; do
  42. bname=$(basename "$file" .zip)
  43. bname=${bname/mingw32-/windows}
  44. bname=${bname/darwin-universal/macOS}
  45. bname=${bname/linux-/linux}
  46. bname=${bname/x86_64/64}
  47. bname=${bname/x86/32}
  48. mv "$file" "ioq3urt-m9-${bname}-${version}.zip"
  49. done
  50. cd ..
  51. deploy:
  52. - provider: gcs
  53. access_key_id: GOOGCLGNLWAEBU5YLYK5
  54. secret_access_key:
  55. secure: "OmuACtWXvmKR4hIlNDwfOh+ZuoMUuivuskyV2n9zD01hpfwfXNQhQrNyLjOMaw2sGHQk2ZKRpmWoMjenfsjDf875Vj1SbytQgBQiLjw77KGHC+cJV9I0uL/BcS8YS+PeZOFmVbUeL7cSfbkBO/z/nJpvnJGPYX1Xj31skCemvzS9QAo3B6RgNGHqI7N4BvBzhcpsyOPzsi9HyOkXo1L6IkpBu+uU8qsfQhA0KexKnIYvM2q1llcU/Ux8hYTpRWJ3TVQb/uNnpijG4E2rKBEZs1bCj2U5Pb5zMsNG8zo6lwbB+tIq3quhXyob9oCn2Sqvj4seDTJzcQZ51Sfa2SsKNsMC7rPlkIKXtpo63U5eijms+F3vU9Y7msJmWc2vVYM5TI0oF18oNJ6oaAyhNsKerSBW3rUHkPE3p9GCn/db3nyVbc3wnm+GY5m2v3QQXtnMXubPLK85gFPRWQoupugdPttqL0DeOlHma+Kepr08Cz9HpFTvIepa9LcotvH9LxnvoYDBVVAb2qQMETemlPFOoAg7ZnMj1SERXst1lYT0LpxbhQ208wikJcJmtQaUfDZWPFOlnm395i3fwfXH73K1pHdeIb9Z3m55qFftALg9boNqTagHzxlfptvePzJVuj3vQIlvnHR3rrp+ozdACQMNR7z5pQ+FNgb7dsmxvjecau4="
  56. bucket: builds.iourtm9.tk
  57. skip-cleanup: true
  58. local-dir: build
  59. upload-dir: ${TRAVIS_BRANCH}/build-${TRAVIS_BUILD_NUMBER}
  60. on:
  61. repo: mickael9/ioq3
  62. all_branches: true
  63. - provider: releases
  64. api_key:
  65. secure: "XJ6PU1vhcw8GxCcPSWoH6ouvnHznw/EFmU0rpvJoJcMObIF0oAzhO6BwxRMFvXT9P51azpZuUm8uTr5bdaQnKz9pPeQBR2fPk0Sp6C7SARqG+kwnwAEFJQU9az8U0E0tr/a6izPaBo1o6NArarJRxpZirjep+7Pxek9tO/7aRP5v5NqnSAFOki5bo5Y1tNOPj4E5U0aAPBl3HcrLZlq4vTKHzfYCNgugyvayjUu+m+nrzZ7DcuSQIPG+oHW1KhZdWdhhpEkRcWxhxP5PHWLJC6UuOOPnqvdJ3G8IG5vJTKBI5eqcSr8W02KtYy6s5ERZn7omBi5/+JQ6Jp+Z69pGsTJ4BkjFEBxMohi87R+yChrMrqo9Eb/XR1lq1FRn9MQg5dZrGrjQ0db+5CnMi+vy/GVwHHdsJd5Sv8beTp2lJiAgIpKJ7mLV5ZGgIwRZkctKe65BzbwN+ryr7/YL1htz5TchHZbAR1WZ6vO6nINcVNF8DgGZSnT5np/gFGeBvDLzxQxxQFXOKL+p+x/3nZEfOln0dKFxd9OFxGDgmF8SlROEmBVm0Yhz1xAWTV9YkcNsSp3XmbuNBL1EkQpl33dNP5eWmQGi9evEPKSNI/Qgf7jMzqcfRoKUaxFaO2FtKlH7kdaPB6DEiJZAGKHuzz/bv+vCW4/1NVZOz/09123guAs="
  66. file-glob: true
  67. file: build/*
  68. skip-cleanup: true
  69. on:
  70. repo: mickael9/ioq3
  71. condition: "${TRAVIS_TAG} == v[0-9]*"