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