2019-06-26 01:26:26 +02:00
|
|
|
language: c
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2019-06-29 02:06:59 +02:00
|
|
|
dist: xenial
|
2019-06-26 01:26:26 +02:00
|
|
|
sudo: required
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2019-06-29 18:05:57 +02:00
|
|
|
- ubuntu-toolchain-r-test
|
2019-06-26 01:26:26 +02:00
|
|
|
packages:
|
2019-06-29 18:05:57 +02:00
|
|
|
- gcc-5
|
|
|
|
- g++-5
|
|
|
|
- make
|
2019-08-27 12:21:05 +02:00
|
|
|
- libglfw3
|
2019-06-29 18:05:57 +02:00
|
|
|
- libglfw3-dev
|
2019-08-27 12:21:05 +02:00
|
|
|
- libfreetype6-dev
|
2019-08-06 17:21:30 +02:00
|
|
|
- libssl-dev
|
2019-07-12 16:10:32 +02:00
|
|
|
- os: windows
|
|
|
|
language: sh
|
|
|
|
filter_secrets: false
|
2019-06-26 01:26:26 +02:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode10.2
|
2019-06-26 21:14:31 +02:00
|
|
|
addons:
|
|
|
|
homebrew:
|
|
|
|
packages:
|
2019-06-29 18:05:57 +02:00
|
|
|
- freetype
|
|
|
|
- glfw
|
2019-08-06 13:37:25 +02:00
|
|
|
- openssl
|
2019-06-25 06:55:44 +02:00
|
|
|
script:
|
2019-06-26 01:26:26 +02:00
|
|
|
- |
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
|
|
|
|
sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
|
|
|
|
fi
|
2019-08-06 13:49:13 +02:00
|
|
|
- |
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
|
|
|
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
|
2019-08-27 12:21:05 +02:00
|
|
|
fi
|
2019-07-12 21:10:22 +02:00
|
|
|
- |
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
|
2019-08-26 12:51:48 +02:00
|
|
|
git clone --depth=1 https://github.com/ubawurinna/freetype-windows-binaries thirdparty/freetype/
|
|
|
|
##echo "Just running ./make.bat to produce v.exe"
|
|
|
|
##./make.bat
|
|
|
|
##echo "Running only the repl tests directly"
|
|
|
|
##./v.exe ./compiler/tests/repl/repl_test.v
|
2019-08-13 22:04:20 +02:00
|
|
|
echo "Testing msvc bootstrapping"
|
2019-08-26 12:51:48 +02:00
|
|
|
./make_msvc.bat
|
2019-08-27 12:21:05 +02:00
|
|
|
echo "Running v test v..."
|
|
|
|
v.exe test v
|
2019-07-12 21:10:22 +02:00
|
|
|
fi
|
2019-07-12 20:58:43 +02:00
|
|
|
- |
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" != "windows" ]]; then
|
2019-07-12 21:10:22 +02:00
|
|
|
make
|
2019-08-16 23:57:26 +02:00
|
|
|
#./v install glfw
|
2019-08-27 12:21:05 +02:00
|
|
|
./v test v
|
2019-07-12 20:58:43 +02:00
|
|
|
fi
|
2019-08-08 15:17:10 +02:00
|
|
|
- |
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
|
|
|
git clone https://github.com/vlang/vid
|
2019-08-27 12:21:05 +02:00
|
|
|
cd vid && ../v -debug -o vid .
|
|
|
|
fi
|