Browse Source

WIP CI fixes.

pull/1865/head
Joao Matos 11 months ago
parent
commit
6f71182793
  1. 2
      tests/quickjs/bootstrap.sh
  2. 11
      tests/quickjs/premake5.lua
  3. 8
      tests/quickjs/test.sh

2
tests/quickjs/bootstrap.sh

@ -3,6 +3,8 @@ set -e
dir=$(cd "$(dirname "$0")"; pwd) dir=$(cd "$(dirname "$0")"; pwd)
rootdir="$dir/../.." rootdir="$dir/../.."
cd $dir
if [ ! -d runtime ]; then if [ ! -d runtime ]; then
git clone https://github.com/quickjs-ng/quickjs.git runtime git clone https://github.com/quickjs-ng/quickjs.git runtime
git -C runtime reset --hard 0e5e9c2c49db15ab9579edeb4d90e610c8b8463f git -C runtime reset --hard 0e5e9c2c49db15ab9579edeb4d90e610c8b8463f

11
tests/quickjs/premake5.lua

@ -1,5 +1,4 @@
local qjs_dir = path.getabsolute("./runtime") local cppsharp_qjs_runtime = "../../src/Generator/Generators/QuickJS/Runtime"
local runtime = "../../src/Generator/Generators/QuickJS/Runtime"
workspace "qjs" workspace "qjs"
configurations { "debug", "release" } configurations { "debug", "release" }
@ -13,13 +12,13 @@ workspace "qjs"
files files
{ {
"gen/**.cpp", "gen/**.cpp",
runtime .. "/*.cpp", cppsharp_qjs_runtime .. "/*.cpp",
runtime .. "/*.c" cppsharp_qjs_runtime .. "/*.c"
} }
includedirs includedirs
{ {
qjs_dir, "runtime",
runtime, cppsharp_qjs_runtime,
"..", "..",
"../../include" "../../include"
} }

8
tests/quickjs/test.sh

@ -7,7 +7,9 @@ configuration=debug
platform=x64 platform=x64
jsinterp="$dir/runtime/build/qjs" jsinterp="$dir/runtime/build/qjs"
if [ $CI = "true" ]; then cd $dir
if [ "$CI" = "true" ]; then
red="" red=""
green="" green=""
reset="" reset=""
@ -27,8 +29,8 @@ fi
echo "${green}Building generated binding files${reset}" echo "${green}Building generated binding files${reset}"
premake=$rootdir/build/premake.sh premake=$rootdir/build/premake.sh
config=$configuration $premake --file=$dir/premake5.lua gmake config=$configuration $premake --file=$dir/premake5.lua gmake2
make -C $dir/gen verbose=true make -C $dir/gen
echo echo
echo "${green}Executing JS tests with QuickJS${reset}" echo "${green}Executing JS tests with QuickJS${reset}"

Loading…
Cancel
Save