2019-05-14 01:51:58 +02:00
|
|
|
language: bash
|
2019-01-30 02:50:19 +01:00
|
|
|
|
2019-06-02 02:41:48 +02:00
|
|
|
# See https://github.com/amaiorano/vectrexy/blob/master/.travis.yml
|
|
|
|
# for ideas on installing vcpkg
|
|
|
|
|
2019-01-30 02:50:19 +01:00
|
|
|
matrix:
|
2019-05-14 01:51:58 +02:00
|
|
|
include:
|
|
|
|
# macOS
|
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2019-05-16 00:18:27 +02:00
|
|
|
script:
|
|
|
|
- python test/run.py
|
2019-05-16 23:25:31 +02:00
|
|
|
- make ws
|
2019-05-14 01:51:58 +02:00
|
|
|
|
2019-06-09 23:27:45 +02:00
|
|
|
# Linux
|
2019-06-03 05:46:20 +02:00
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
2019-06-09 23:27:45 +02:00
|
|
|
script:
|
|
|
|
- python test/run.py
|
|
|
|
- make ws
|
2019-06-03 05:46:20 +02:00
|
|
|
env:
|
2019-06-09 23:27:45 +02:00
|
|
|
- CC=gcc
|
|
|
|
- CXX=g++
|
|
|
|
|
|
|
|
# Clang + Linux disabled for now
|
|
|
|
# - os: linux
|
|
|
|
# dist: xenial
|
|
|
|
# script: python test/run.py
|
|
|
|
# env:
|
|
|
|
# - CC=clang
|
|
|
|
# - CXX=clang++
|
2019-01-08 05:49:03 +01:00
|
|
|
|
2019-05-14 01:51:58 +02:00
|
|
|
# Windows
|
|
|
|
- os: windows
|
|
|
|
env:
|
|
|
|
- CMAKE_PATH="/c/Program Files/CMake/bin"
|
|
|
|
script:
|
|
|
|
- export PATH=$CMAKE_PATH:$PATH
|
2019-06-10 20:18:27 +02:00
|
|
|
- cmake -DUSE_TLS=1 -DUSE_WS=1 -DUSE_MBED_TLS=1 -DUSE_VENDORED_THIRD_PARTY=1 .
|
2019-06-03 05:46:20 +02:00
|
|
|
- cmake --build --parallel .
|
2019-05-14 01:51:58 +02:00
|
|
|
- python test/run.py
|
2019-06-10 22:35:47 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
# HACK: gcc 8.0.1 is missing movdirintrin.h so just download it. We need this for GLM and Vectrexy to build.
|
|
|
|
- sudo wget https://raw.githubusercontent.com/gcc-mirror/gcc/gcc-8-branch/gcc/config/i386/movdirintrin.h -P /usr/lib/gcc/x86_64-linux-gnu/8/include/
|
|
|
|
|
|
|
|
# Create deps dir
|
|
|
|
- mkdir -p ${DEPS_DIR}
|
|
|
|
|
|
|
|
# Set compiler vars
|
|
|
|
- export CC=${CC_COMPILER}
|
|
|
|
- export CXX=${CXX_COMPILER}
|
|
|
|
|
|
|
|
# Install vcpkg and dependencies
|
|
|
|
- |
|
|
|
|
set -e
|
|
|
|
mkdir -p ${DEPS_DIR}/vcpkg
|
|
|
|
pushd ${DEPS_DIR}/vcpkg
|
|
|
|
git init
|
|
|
|
git remote add origin https://github.com/Microsoft/vcpkg.git
|
|
|
|
git fetch origin master
|
|
|
|
git checkout -b master origin/master
|
|
|
|
./bootstrap-vcpkg.sh
|
|
|
|
# Only build release libs to save time. We inject a new line first since some cmake files don't end with one.
|
|
|
|
echo -e '\nset(VCPKG_BUILD_TYPE release)' >> ./triplets/${VCPKG_TRIPLET}.cmake
|
|
|
|
./vcpkg install sdl2 sdl2-net glew glm stb imgui
|
|
|
|
popd
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ${DEPS_DIR}/vcpkg/installed
|