From 660fd040632b650acc6366e11eff24799324e4b5 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 20 Apr 2020 20:18:42 +0100 Subject: [PATCH] Meta: Build Lagom js and run LibJS tests on Travis --- .travis.yml | 11 +++++++---- Meta/Lagom/build-js.sh | 8 ++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100755 Meta/Lagom/build-js.sh diff --git a/.travis.yml b/.travis.yml index a84e3752c28..3044ac7a18e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,16 +23,19 @@ notifications: before_install: - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - sudo apt-get update -qq -- sudo apt-get install g++-8 libstdc++-8-dev shellcheck +- sudo apt-get install -y g++-8 libstdc++-8-dev cmake shellcheck libmpfr-dev libmpc-dev libgmp-dev e2fsprogs qemu-system-i386 qemu-utils - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90 - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 90 -- sudo apt-get install -y libmpfr-dev libmpc-dev libgmp-dev -- sudo apt-get install -y e2fsprogs qemu-system-i386 qemu-utils script: +- export SERENITY_ROOT=$(pwd) - cd Toolchain - TRY_USE_LOCAL_TOOLCHAIN=y ./BuildIt.sh - cd ../Kernel - ./makeall.sh - ../Meta/lint-shell-scripts.sh -- du -ch ../Toolchain/Cache/* || true +- ../Meta/Lagom/build-js.sh +- cd ../Libraries/LibJS/Tests +- ./run-tests +- cd ../../../Toolchain/Cache +- du -ch * || true diff --git a/Meta/Lagom/build-js.sh b/Meta/Lagom/build-js.sh new file mode 100755 index 00000000000..10827428f39 --- /dev/null +++ b/Meta/Lagom/build-js.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P) +cd "$script_path" || exit 1 +mkdir -p build +cd build || exit 1 +cmake .. +make js