v/.travis.yml

51 lines
1.1 KiB
YAML
Raw Normal View History

2019-06-25 23:26:26 +00:00
language: c
matrix:
include:
- os: linux
2019-06-29 00:06:59 +00:00
dist: xenial
2019-06-25 23:26:26 +00:00
sudo: required
addons:
apt:
sources:
2019-06-29 16:05:57 +00:00
- ubuntu-toolchain-r-test
2019-06-25 23:26:26 +00:00
packages:
2019-06-29 16:05:57 +00:00
- gcc-5
- g++-5
- make
- libglfw3
- libglfw3-dev
- libfreetype6-dev
- libcurl3-dev
2019-07-12 14:10:32 +00:00
- os: windows
language: sh
filter_secrets: false
2019-06-25 23:26:26 +00:00
- os: osx
osx_image: xcode10.2
2019-06-26 19:14:31 +00:00
addons:
homebrew:
packages:
2019-06-29 16:05:57 +00:00
- freetype
- glfw
2019-06-26 19:14:31 +00:00
#env:
# - MATRIX_EVAL="brew install freetype glfw"
2019-06-25 04:55:44 +00:00
script:
2019-06-25 23:26:26 +00:00
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
fi
2019-06-29 00:06:59 +00:00
- |
if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
2019-07-12 18:58:43 +00:00
#choco install make
2019-06-29 00:06:59 +00:00
cp "C:\\ProgramData\\chocolatey\\bin\\gcc.exe" "C:\\ProgramData\\chocolatey\\bin\\cc.exe"
fi
2019-06-25 04:55:44 +00:00
- export VROOT=$(pwd)
2019-07-12 19:10:22 +00:00
- |
if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
./make.bat
fi
2019-07-12 18:58:43 +00:00
- |
if [[ "${TRAVIS_OS_NAME}" != "windows" ]]; then
2019-07-12 19:10:22 +00:00
make
2019-07-12 18:58:43 +00:00
make test
fi