travis: test JS backend

pull/2014/head
Alexander Medvednikov 2019-09-16 19:02:10 +03:00
parent c76d09f9a5
commit a81656568b
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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.')
}
}
}