mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
use matrix and add osx build
This commit is contained in:
parent
7a2d9ef06e
commit
6a0ac35af2
31
.travis.yml
31
.travis.yml
@ -1,14 +1,25 @@
|
|||||||
sudo: required
|
language: c
|
||||||
addons:
|
matrix:
|
||||||
apt:
|
include:
|
||||||
sources:
|
- os: linux
|
||||||
- ubuntu-toolchain-r-test
|
sudo: required
|
||||||
packages:
|
addons:
|
||||||
- gcc-5
|
apt:
|
||||||
- g++-5
|
sources:
|
||||||
- make
|
- ubuntu-toolchain-r-test
|
||||||
|
packages:
|
||||||
|
- gcc-5
|
||||||
|
- g++-5
|
||||||
|
- make
|
||||||
|
- os: osx
|
||||||
|
osx_image: xcode10.2
|
||||||
|
env:
|
||||||
|
- MATRIX_EVAL="brew install glm freetype cjson glfw"
|
||||||
script:
|
script:
|
||||||
- sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
|
- |
|
||||||
|
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
|
||||||
|
sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
|
||||||
|
fi
|
||||||
- export VROOT=$(pwd)
|
- export VROOT=$(pwd)
|
||||||
- cd ./compiler
|
- cd ./compiler
|
||||||
- make
|
- make
|
||||||
|
@ -7,8 +7,8 @@ v: v.c
|
|||||||
v.c:
|
v.c:
|
||||||
wget https://raw.githubusercontent.com/vlang/vc/master/v.c
|
wget https://raw.githubusercontent.com/vlang/vc/master/v.c
|
||||||
|
|
||||||
test:
|
test: v
|
||||||
find .. -name '*_test.v' | xargs v {}
|
find .. -name '*_test.v' | xargs ./v {}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm v.c
|
-rm v.c
|
||||||
|
@ -6,7 +6,7 @@ import os
|
|||||||
import gl
|
import gl
|
||||||
import gg
|
import gg
|
||||||
|
|
||||||
fn cmp(a, b float) bool {
|
fn cmp(a, b f32) bool {
|
||||||
return int(a * 1000) == int(b * 1000)
|
return int(a * 1000) == int(b * 1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user