1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-19 08:52:34 +01:00

Use the new travis layout.

This commit is contained in:
David Anderson 2015-09-24 19:17:47 -07:00
parent c222ce746f
commit 20af85bf89
2 changed files with 19 additions and 16 deletions

View File

@ -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
- PATH="~/.local/bin:$PATH"
- CC=clang CXX=clang python ../configure.py --enable-optimize --sdks=episode1,tf2,l4d2,csgo,dota
- ambuild

View File

@ -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