mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
travis: test JS backend
This commit is contained in:
parent
c76d09f9a5
commit
a81656568b
@ -49,7 +49,7 @@ script:
|
||||
#set
|
||||
set -e
|
||||
git clone --depth=1 https://github.com/ubawurinna/freetype-windows-binaries thirdparty/freetype/
|
||||
|
||||
|
||||
if [[ "${TRAVIS_JOB_NAME}" == "windows_gcc" ]]; then
|
||||
echo "Building V with GCC"
|
||||
export VFLAGS="-os windows"
|
||||
@ -60,7 +60,7 @@ script:
|
||||
export VFLAGS="-os msvc"
|
||||
./make.bat -msvc
|
||||
fi
|
||||
|
||||
|
||||
### running just repl_test.v produces failing results earlier and is easier to read
|
||||
echo "Running only the repl tests directly..."
|
||||
./v.exe ./compiler/tests/repl/repl_test.v
|
||||
@ -76,6 +76,11 @@ script:
|
||||
fi
|
||||
- |
|
||||
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
||||
# Build Vid
|
||||
git clone https://github.com/vlang/vid
|
||||
cd vid && ../v -debug -o vid .
|
||||
|
||||
# Build hi.js
|
||||
echo "println('Hello from V.js')" > hi.js
|
||||
v -o hi.js hi.v && node hi.js
|
||||
fi
|
||||
|
@ -33,6 +33,7 @@ fn (v mut V) cc() {
|
||||
ret := os.system('$vjs_path -o $v.out_name $v.dir')
|
||||
if ret == 0 {
|
||||
println('Done. Run it with `node $v.out_name`')
|
||||
println('JS backend is at a very early stage.')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user