From d2e14a4b7c95b0cd90fe509c2127e9fd0ce65eee Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 27 Aug 2014 12:46:22 +0000 Subject: [PATCH] Add Travis-CI integration for Xonotic. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12091 d7cf8633-e32d-0410-b094-e92efae38249 --- .travis-before_install-xonotic.sh | 64 +++++++++++++++++++++++++++++ .travis-id_rsa-xonotic | Bin 0 -> 3248 bytes .travis-script-xonotic.sh | 65 ++++++++++++++++++++++++++++++ .travis.yml | 32 +++++++++++++++ 4 files changed, 161 insertions(+) create mode 100755 .travis-before_install-xonotic.sh create mode 100644 .travis-id_rsa-xonotic create mode 100755 .travis-script-xonotic.sh create mode 100644 .travis.yml diff --git a/.travis-before_install-xonotic.sh b/.travis-before_install-xonotic.sh new file mode 100755 index 00000000..adb87e90 --- /dev/null +++ b/.travis-before_install-xonotic.sh @@ -0,0 +1,64 @@ +#!/bin/sh + +set -ex + +if [ "`uname`" = 'Linux' ]; then + sudo apt-get update -qq +fi + +for os in "$@"; do + case "$os" in + linux32) + # Prepare an i386 chroot. This is required as we otherwise can't install + # our dependencies to be able to compile a 32bit binary. Ubuntu... + chroot="$PWD"/buildroot.i386 + mkdir -p "$chroot$PWD" + sudo apt-get install -y debootstrap + sudo i386 debootstrap --arch=i386 precise "$chroot" + sudo mount --rbind "$PWD" "$chroot$PWD" + sudo i386 chroot "$chroot" apt-get install -y \ + build-essential + # Now install our dependencies. + sudo i386 chroot "$chroot" apt-get install -y \ + libxpm-dev libsdl1.2-dev libxxf86vm-dev + wget https://www.libsdl.org/release/SDL2-2.0.3.tar.gz + tar xf SDL2-2.0.3.tar.gz + ( + cd SDL2-2.0.3 + sudo i386 chroot "$chroot" sh -c "cd $PWD && ./configure --enable-static --disable-shared" + sudo i386 chroot "$chroot" make -C "$PWD" + sudo i386 chroot "$chroot" make -C "$PWD" install + ) + ;; + linux64) + sudo apt-get install -y \ + libxpm-dev libsdl1.2-dev libxxf86vm-dev + wget https://www.libsdl.org/release/SDL2-2.0.3.tar.gz + tar xf SDL2-2.0.3.tar.gz + ( + cd SDL2-2.0.3 + ./configure --enable-static --disable-shared + make + sudo make install + ) + ;; + win32) + sudo apt-get install -y \ + mingw-w64 mingw32- mingw32-binutils- + ;; + win64) + sudo apt-get install -y \ + mingw-w64 mingw32- mingw32-binutils- + ;; + osx) + git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \ + --prefix=SDL.framework/ master:misc/buildfiles/osx/Xonotic.app/Contents/Frameworks/SDL.framework | tar xvf - + ;; + esac +done + +git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \ + --prefix=.deps/ master:misc/builddeps | tar xvf - +for X in .deps/*; do + rsync --remove-source-files -aL "$X"/*/ "$X"/ || true +done diff --git a/.travis-id_rsa-xonotic b/.travis-id_rsa-xonotic new file mode 100644 index 0000000000000000000000000000000000000000..c8446b586e7e56e391c9f00c712fdbe00f5672bd GIT binary patch literal 3248 zcmV;h3{UgRr{G<50>btH8GV7H?nb6CBNZd~H$mt!TVpih^-vBAjx&^};ky(k6t5Iv z9jT!b^=Kz@Zji_{GE*UUWY*`*1mG4Jsi*?@0=PVNolS#=MQefibm;_Y{MwleY#Aqw zga{Fsf(pwWt&5(S67&>ed>lcMf`BS(Vl)NnYg2dzmD%YAqFkF7`$C&3D%(lObaZ09 z^SbM8VvhG!DxiaH=WYAoUeS%(Y?D3pfL{VFX%e{0{2s9MR9|RpONJtwDib~SYTf5u zVTGpaEb}=SjHy5zmiOgYSAR*8cee^&{zDi$w9%r(CP@*3ykikrQ~Q=cgQUWHJ;?E0 zC$K%f!&_$x@ym{iazG$i#wP#RQz{!7G3~adZ39?(i!wiP2qjH7syW9%qv)$s_#|@$B;zz zZvx%PKCG^mc@UIzGbX9|S*WPVEw&G~b{#zNc9D-Q;q4F=yx^9 z&XNl90}r$%)5PWi0&oOv5|gKPhgzKlSWgpJ_BM z=F4OxCCV_hQL>ly@hgWpGv+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y@lGyek9ZM12gG`xm&WVo> z;`%Xt-4f5eQULt=fxdg4pRLR9tS!hPkb?54nq5qb0T18iRF6UrDyHaHKr4bax<04d_o zDr8g2qu*5@k7j&u+)C~u+TfbK*+Z4&AK$Lh?$rwzhJ5@_~!gm7%PJ<}K< z>NgczN5gJ)b1*!kZdg zKCeWm7aI29$B7T$Zak`x(hGo^VxEXOSINx88l5`Ti1#eCs+u zy3Lexi_b`szP4E%i3gHHusk(hJWi-Q?q7Tbcg66nl+f-j1^evr9lk})r-8-c4t?r@ z_+M>c>cU=ksXjOb!h?j38iCS)PyfK8}wL(Mxo}SiY`19a=p)-ZgY#onf`-Icw zDE+L_TYwR57*lMx*Er;(KfYEi9$w7q8tH43;<0B zU!xvyZx56S6zCR8Vxl4Y-3^Hwee0~_M=$Bi%M*DOd@WL&5%X33{Z2&Wq&+aw_}P@R z9$PVRITiaHzrYNK)N_HK4raAzQY<9dRxou8QiY^M%NGOT6H2AP@IC)Vyh>WHx|d$M z;1casE6g(J(Jyy34S1tx9TQIyhbRFmWoFJu}m8U&sxF0u~#lzWMMfiNx9T8n-zFD zy|>87>0L+yfdP7LUbJ;i;$0A&sfq64WhVX>woF9#r)1mplK-%%<#@9XsbRcj^O{R` z8Gk8*8ooA(o^8i!0%Z+y8tQ}?C42}OBH@}bH{Hfn#!JBrQ$=R7Q6sgHThh`{#HJ0B zj7nlmn+h_}JwC{nW#0re#VXFP^dtL4`FE4X3?Ai4c$KhO7BTU2p*?;ParDa{7nFAg z3c0`$p~KHzQ%%1ygpuRy@7A4<4u(!uF)zJQ?fX{-`p0C#fq7Y^D)JO4vzGM(o?JPD ii+QgmJ5}MrO3|aibgTK#-LyEwtJc2t#E>8@7{U*RZcs!3 literal 0 HcmV?d00001 diff --git a/.travis-script-xonotic.sh b/.travis-script-xonotic.sh new file mode 100755 index 00000000..a8a19b97 --- /dev/null +++ b/.travis-script-xonotic.sh @@ -0,0 +1,65 @@ +#!/bin/sh + +set -ex + +openssl aes-256-cbc \ + -K $encrypted_08aaf016324d_key -iv $encrypted_08aaf016324d_iv \ + -in .travis-id_rsa-xonotic -out id_rsa-xonotic -d +chmod 0600 id_rsa-xonotic +ssh-keygen -y -f id_rsa-xonotic + +rev=`git rev-parse HEAD` + +sftp -oStrictHostKeyChecking=no -i id_rsa-xonotic -P 2222 -b - autobuild-bin-uploader@beta.xonotic.org <