2019-09-23 01:18:45 +02:00
|
|
|
language: c
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
name: "linux"
|
|
|
|
dist: xenial
|
|
|
|
sudo: required
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- build-essential
|
|
|
|
- libglfw3
|
|
|
|
- libglfw3-dev
|
|
|
|
- libfreetype6-dev
|
|
|
|
- libssl-dev
|
|
|
|
- os: windows
|
|
|
|
name: "windows_gcc"
|
|
|
|
language: bash
|
|
|
|
filter_secrets: false
|
|
|
|
- os: windows
|
|
|
|
name: "windows_msvc"
|
|
|
|
language: bash
|
|
|
|
filter_secrets: false
|
|
|
|
- os: osx
|
|
|
|
name: "osx"
|
2019-09-30 18:51:25 +02:00
|
|
|
osx_image: xcode11
|
2019-09-23 01:18:45 +02:00
|
|
|
addons:
|
|
|
|
homebrew:
|
|
|
|
packages:
|
|
|
|
- freetype
|
|
|
|
- glfw
|
|
|
|
- openssl
|
|
|
|
script:
|
|
|
|
- |
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
|
|
|
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
|
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
|
|
|
|
### troubleshooting and diagnostics: show ALL environment variables in the instance
|
|
|
|
#set
|
|
|
|
set -e
|
|
|
|
git clone --depth=1 https://github.com/ubawurinna/freetype-windows-binaries thirdparty/freetype/
|
|
|
|
|
|
|
|
if [[ "${TRAVIS_JOB_NAME}" == "windows_gcc" ]]; then
|
2019-09-28 19:41:11 +02:00
|
|
|
gcc --version
|
2019-09-23 01:18:45 +02:00
|
|
|
echo "Building V with GCC"
|
|
|
|
./make.bat -gcc
|
|
|
|
fi
|
|
|
|
if [[ "${TRAVIS_JOB_NAME}" == "windows_msvc" ]]; then
|
|
|
|
echo "Building V with MSVC"
|
2019-10-14 07:51:12 +02:00
|
|
|
export VFLAGS="-cc msvc"
|
2019-09-23 01:18:45 +02:00
|
|
|
./make.bat -msvc
|
|
|
|
fi
|
|
|
|
|
|
|
|
./v.exe test v
|
|
|
|
set +e
|
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" != "windows" ]]; then
|
|
|
|
make
|
2019-10-14 06:08:02 +02:00
|
|
|
./v -o v v.v
|
2019-09-23 01:18:45 +02:00
|
|
|
./v test v
|
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
|
|
|
|
## aliases do not work for some reason in travis, just use full commands :-|
|
|
|
|
echo "Nodejs version:"
|
2019-09-23 12:56:25 +02:00
|
|
|
node --version
|
2019-09-23 01:18:45 +02:00
|
|
|
# Build hi.js
|
|
|
|
echo "fn main(){ println('Hello from V.js') }" > hi.v
|
|
|
|
./v -o hi.js hi.v
|
|
|
|
node hi.js
|
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
|
|
|
echo "Nodejs version:"
|
2019-09-23 12:56:25 +02:00
|
|
|
node --version
|
2019-09-23 01:18:45 +02:00
|
|
|
# Build hi.js
|
|
|
|
echo "fn main(){ println('Hello from V.js') }" > hi.v
|
|
|
|
./v -o hi.js hi.v
|
|
|
|
node hi.js
|
|
|
|
fi
|
|
|
|
- |
|
2019-09-23 12:56:25 +02:00
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
|
|
|
# Build Vid
|
|
|
|
git clone https://github.com/vlang/vid
|
2019-10-10 03:00:13 +02:00
|
|
|
cd vid && ../v -o vid .
|
2019-09-23 12:56:25 +02:00
|
|
|
fi
|