From 20af85bf89a0fff90c3ddc58eadff4c46e06b2b9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 24 Sep 2015 19:17:47 -0700 Subject: [PATCH] Use the new travis layout. --- .travis.yml | 31 +++++++++++++++++-------------- support/checkout-deps.sh | 4 ++-- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6701435..4ab146e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,24 @@ +addons: + apt: + packages: + - clang-3.5 + - lib32stdc++6 + - lib32z1-dev + - libc6-dev-i386 + - linux-libc-dev + - g++-multilib + - g++-4.8 + sources: + - llvm-toolchain-precise-3.5 + - ubuntu-toolchain-r-test language: cpp +sudo: false compiler: - clang before_script: - - sudo apt-get update -qq - - sudo apt-get install -y python-software-properties - - sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/ppa - - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - - sudo apt-get update -qq - - sudo apt-get install -qq g++-4.8 - - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90 - - echo "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main" | sudo tee --append /etc/apt/sources.list - - echo "deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main" | sudo tee --append /etc/apt/sources.list - - wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add - - - sudo apt-get update -qq - - sudo apt-get install -y g++-multilib libc6-dev-i386 lib32stdc++6 lib32z1-dev clang-3.5 - CHECKOUT_DIR=$PWD && cd .. && $CHECKOUT_DIR/support/checkout-deps.sh && cd $CHECKOUT_DIR script: - mkdir build && cd build - - CC=clang-3.5 CXX=clang-3.5 python ../configure.py --enable-optimize - - ambuild --jobs=4 \ No newline at end of file + - PATH="~/.local/bin:$PATH" + - CC=clang CXX=clang python ../configure.py --enable-optimize --sdks=episode1,tf2,l4d2,csgo,dota + - ambuild diff --git a/support/checkout-deps.sh b/support/checkout-deps.sh index fbe3fa6..a45a400 100755 --- a/support/checkout-deps.sh +++ b/support/checkout-deps.sh @@ -83,7 +83,7 @@ if [ $? -eq 1 ]; then python setup.py install else python setup.py build - echo "About to install AMBuild - press Ctrl+C to abort, otherwise enter your password for sudo." - sudo python setup.py install + echo "Installing AMBuild at the user level. Location can be: ~/.local/bin" + python setup.py install --user fi fi