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

46 lines
978 B
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
- libglfw3-dev
- libfreetype6-dev
- libcurl3-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
osx_image: xcode10.2
2019-06-26 22:14:31 +03:00
addons:
homebrew:
packages:
2019-06-29 19:05:57 +03:00
- freetype
- glfw
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-07-12 22:10:22 +03:00
- |
if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
2019-07-21 22:08:29 +03:00
echo "Running make.bat..."
2019-07-12 22:10:22 +03:00
./make.bat
2019-07-21 22:21:23 +03:00
./v.exe -o v2.exe compiler
./v2.exe -o v3.exe compiler
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-07-12 21:58:43 +03:00
make test
fi