2019-01-25 15:46:38 +00:00
|
|
|
jobs:
|
|
|
|
- job: ubuntu16
|
|
|
|
pool:
|
|
|
|
vmImage: 'Ubuntu-16.04'
|
|
|
|
steps:
|
|
|
|
- script: |
|
2019-01-25 16:41:31 +00:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y software-properties-common
|
|
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
2019-01-25 15:46:38 +00:00
|
|
|
sudo apt-get update
|
2019-01-25 15:59:35 +00:00
|
|
|
sudo apt-get install cmake build-essential -y
|
2019-01-25 16:41:31 +00:00
|
|
|
sudo apt-get install gcc-8 g++-8 -y
|
|
|
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60
|
|
|
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 60
|
2019-01-25 16:07:21 +00:00
|
|
|
sudo apt-get install libmysqlclient-dev -y
|
2019-01-25 15:59:35 +00:00
|
|
|
sudo apt-get install bison autoconf automake -y
|
|
|
|
sudo apt-get install libpng12-dev libjpeg62-dev -y
|
2019-01-25 15:46:38 +00:00
|
|
|
sudo apt-get install liblua5.1-dev libluabind-dev libcpptest-dev -y
|
|
|
|
sudo apt-get install libogg-dev libvorbis-dev libopenal-dev -y
|
|
|
|
sudo apt-get install libgif-dev libfreetype6-dev -y
|
|
|
|
sudo apt-get install libxml2-dev -y
|
2019-01-25 16:03:07 +00:00
|
|
|
sudo apt-get install libcurl4-openssl-dev -y
|
2019-01-25 15:46:38 +00:00
|
|
|
displayName: 'Dependencies'
|
|
|
|
- script: |
|
|
|
|
mkdir build
|
|
|
|
cmake --version
|
|
|
|
cd build
|
2019-01-25 16:11:23 +00:00
|
|
|
cmake -DWITH_NEL_TESTS=OFF -DWITH_NEL_SAMPLES=ON -DWITH_LUA51=ON -DWITH_RYZOM_SERVER=ON -DWITH_RYZOM_TOOLS=OFF -DWITH_NEL_TOOLS=OFF ../code
|
2019-01-25 16:14:36 +00:00
|
|
|
cat CMakeCache.txt
|
2019-01-25 15:46:38 +00:00
|
|
|
displayName: 'CMake'
|
|
|
|
- script: |
|
2019-01-25 16:17:22 +00:00
|
|
|
cd build
|
2019-01-25 15:46:38 +00:00
|
|
|
make -j`nproc`
|
|
|
|
displayName: 'Make'
|