From 11ebba05e4bf709e8a27853caf98b937915e541b Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Fri, 22 Sep 2017 22:36:41 -0500 Subject: [PATCH] [MIRROR] Travis improvements for tools and trusty environment bump (#2900) * Travis improvements for tools and trusty environment bump We now run a php linter on the webhook We now combine and build all maps in the right build script Because only the byond build will use the maps this shouldn't run in the tools script file, this is only working because of the order the build scripts are run in the travis yml * Travis improvements for tools and trusty environment bump --- .travis.yml | 5 +++-- tools/travis/before_build_byond.sh | 4 ++++ tools/travis/before_build_tools.sh | 3 --- tools/travis/build_tools.sh | 1 + 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index ba11b40c97..b353761b2d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,5 @@ language: generic sudo: false -dist: precise - env: global: - BYOND_MAJOR="511" @@ -23,12 +21,15 @@ cache: addons: apt: + sources: + - sourceline: 'ppa:ondrej/php' packages: - libc6-i386 - libgcc1:i386 - libstdc++6:i386 - python - python-pip + - php5.6 install: - tools/travis/install_build_tools.sh diff --git a/tools/travis/before_build_byond.sh b/tools/travis/before_build_byond.sh index af7dc3cc66..8cfe0a1cf6 100755 --- a/tools/travis/before_build_byond.sh +++ b/tools/travis/before_build_byond.sh @@ -5,6 +5,10 @@ set -e if [ "$BUILD_TOOLS" = true ]; then exit 0 fi; +echo "Combining maps for building" +if [ "$DM_MAPFILE" = "loadallmaps" ]; then + python tools/travis/template_dm_generator.py +fi; if [ -d "$HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin" ]; then diff --git a/tools/travis/before_build_tools.sh b/tools/travis/before_build_tools.sh index 50167e1262..2329de82b2 100755 --- a/tools/travis/before_build_tools.sh +++ b/tools/travis/before_build_tools.sh @@ -5,6 +5,3 @@ if [ "$BUILD_TOOLS" = true ]; then cd tgui && source ~/.nvm/nvm.sh && npm install && cd .. fi; -if [ "$DM_MAPFILE" = "loadallmaps" ]; then - python tools/travis/template_dm_generator.py -fi; diff --git a/tools/travis/build_tools.sh b/tools/travis/build_tools.sh index 6aba5da538..2e9810b470 100755 --- a/tools/travis/build_tools.sh +++ b/tools/travis/build_tools.sh @@ -7,5 +7,6 @@ if [ "$BUILD_TOOLS" = true ]; then md5sum -c - <<< "49bc6b1b9ed56c83cceb6674bd97cb34 *html/changelogs/example.yml"; cd tgui && source ~/.nvm/nvm.sh && gulp && cd ..; + php5.6 -l tools/WebhookProcessor/github_webhook_processor.php; python tools/ss13_genchangelog.py html/changelog.html html/changelogs; fi;