1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/.travis.yml
Emily Hudson d373b331fa ompiler: MSVC related fixes and v test v for windows testing
* MSVC related fixes and v test v for windows testing

* If second stage crashes on windows goto error

* use os.exec instead of system so that the error can be printed

* use -debug for osx vid

* Fix some whitespace to trigger a rebuild
2019-08-18 17:25:33 +03:00

57 lines
1.3 KiB
YAML

language: c
matrix:
include:
- os: linux
dist: xenial
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- make
- libglfw3
- libglfw3-dev
- libfreetype6-dev
- libssl-dev
- os: windows
language: sh
filter_secrets: false
- os: osx
osx_image: xcode10.2
addons:
homebrew:
packages:
- freetype
- glfw
- openssl
script:
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
fi
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
fi
- |
if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
echo "Testing msvc bootstrapping"
./make_msvc.bat
echo "Running make_tests.bat..."
./make_tests.bat
fi
- |
if [[ "${TRAVIS_OS_NAME}" != "windows" ]]; then
make
#./v install glfw
./v test v
fi
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
git clone https://github.com/vlang/vid
cd vid && ../v -debug -o vid .
fi