1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/.travis.yml

73 lines
1.8 KiB
YAML
Raw Normal View History

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