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.
 
 
 
 
 
 

74 lines
2.0 KiB

  1. language: generic
  2. sudo: false
  3. branches:
  4. except:
  5. - ___TGS3TempBranch
  6. env:
  7. global:
  8. - BYOND_MAJOR="512"
  9. - BYOND_MINOR="1427"
  10. - NODE_VERSION="4"
  11. - RUST_G_VERSION="0.3.0"
  12. - BSQL_VERSION="v1.3.0.2"
  13. matrix:
  14. include:
  15. - env:
  16. - BUILD_TOOLS=true
  17. addons:
  18. apt:
  19. packages:
  20. - python3
  21. - python3-pip
  22. cache:
  23. directories:
  24. - tgui/node_modules
  25. - env:
  26. - BUILD_TESTING=true
  27. - BUILD_TOOLS=false
  28. addons:
  29. apt:
  30. packages:
  31. - libstdc++6:i386
  32. cache:
  33. directories:
  34. - $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}
  35. - env:
  36. - BUILD_TESTING=false
  37. - BUILD_TOOLS=false
  38. addons:
  39. mariadb: '10.2'
  40. apt:
  41. sources:
  42. - ubuntu-toolchain-r-test
  43. packages:
  44. - libstdc++6:i386
  45. - libssl-dev:i386
  46. - gcc-multilib
  47. - g++-7
  48. - g++-7-multilib
  49. - libmariadbclient-dev:i386
  50. cache:
  51. directories:
  52. - $HOME/.cargo
  53. - $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}
  54. - $HOME/MariaDB
  55. - $HOME/.rustup
  56. install:
  57. - tools/travis/install_build_tools.sh
  58. - if [ $BUILD_TOOLS = false ] && [ $BUILD_TESTING = false ]; then mysql -u root -e 'CREATE DATABASE tg_travis;'; fi
  59. - if [ $BUILD_TOOLS = false ] && [ $BUILD_TESTING = false ]; then mysql -u root tg_travis < SQL/tgstation_schema.sql; fi
  60. - if [ $BUILD_TOOLS = false ] && [ $BUILD_TESTING = false ]; then mysql -u root -e 'CREATE DATABASE tg_travis_prefixed;'; fi
  61. - if [ $BUILD_TOOLS = false ] && [ $BUILD_TESTING = false ]; then mysql -u root tg_travis_prefixed < SQL/tgstation_schema_prefixed.sql; fi
  62. before_script:
  63. - tools/travis/before_build_tools.sh
  64. - tools/travis/before_build_byond.sh
  65. script:
  66. - tools/travis/check_filedirs.sh tgstation.dme
  67. - tools/travis/build_tools.sh || travis_terminate 1
  68. - tools/travis/build_dependencies.sh || travis_terminate 1
  69. - tools/travis/build_byond.sh