Meta: Build Lagom js and run LibJS tests on Travis

This commit is contained in:
Linus Groh 2020-04-20 20:18:42 +01:00 committed by Andreas Kling
parent 9722cac9fe
commit 660fd04063
Notes: sideshowbarker 2024-07-19 07:25:50 +09:00
2 changed files with 15 additions and 4 deletions

View file

@ -23,16 +23,19 @@ notifications:
before_install: before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq - 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/g++ g++ /usr/bin/g++-8 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-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: script:
- export SERENITY_ROOT=$(pwd)
- cd Toolchain - cd Toolchain
- TRY_USE_LOCAL_TOOLCHAIN=y ./BuildIt.sh - TRY_USE_LOCAL_TOOLCHAIN=y ./BuildIt.sh
- cd ../Kernel - cd ../Kernel
- ./makeall.sh - ./makeall.sh
- ../Meta/lint-shell-scripts.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

8
Meta/Lagom/build-js.sh Executable file
View file

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