Skip to content

Commit

Permalink
WIP CI fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Sep 3, 2024
1 parent c27d0ef commit 38824c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions tests/quickjs/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -e
dir=$(cd "$(dirname "$0")"; pwd)
rootdir="$dir/../.."

cd $dir

if [ ! -d runtime ]; then
git clone https://github.com/quickjs-ng/quickjs.git runtime
git -C runtime reset --hard 0e5e9c2c49db15ab9579edeb4d90e610c8b8463f
Expand Down
11 changes: 5 additions & 6 deletions tests/quickjs/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
local qjs_dir = path.getabsolute("./runtime")
local runtime = "../../src/Generator/Generators/QuickJS/Runtime"
local cppsharp_qjs_runtime = "../../src/Generator/Generators/QuickJS/Runtime"

workspace "qjs"
configurations { "debug", "release" }
Expand All @@ -13,13 +12,13 @@ workspace "qjs"
files
{
"gen/**.cpp",
runtime .. "/*.cpp",
runtime .. "/*.c"
cppsharp_qjs_runtime .. "/*.cpp",
cppsharp_qjs_runtime .. "/*.c"
}
includedirs
{
qjs_dir,
runtime,
"runtime",
cppsharp_qjs_runtime,
"..",
"../../include"
}
Expand Down
6 changes: 4 additions & 2 deletions tests/quickjs/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ configuration=debug
platform=x64
jsinterp="$dir/runtime/build/qjs"

if [ $CI = "true" ]; then
cd $dir

if [ "$CI" = "true" ]; then
red=""
green=""
reset=""
Expand All @@ -28,7 +30,7 @@ fi
echo "${green}Building generated binding files${reset}"
premake=$rootdir/build/premake.sh
config=$configuration $premake --file=$dir/premake5.lua gmake
make -C $dir/gen
verbose=true make -C $dir/gen
echo

echo "${green}Executing JS tests with QuickJS${reset}"
Expand Down

0 comments on commit 38824c4

Please sign in to comment.