mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
937d0be762
.. and make travis run it. I renamed check-license-headers.sh to check-style.sh and expanded it so that it now also checks for the presence of "#pragma once" in .h files. It also checks the presence of a (single) blank line above and below the "#pragma once" line. I also added "#pragma once" to all the files that need it: even the ones we are not check. I also added/removed blank lines in order to make the script not fail. I also ran clang-format on the files I modified.
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
os: linux
|
|
dist: bionic
|
|
|
|
language: cpp
|
|
|
|
compiler:
|
|
- gcc
|
|
|
|
cache:
|
|
directories:
|
|
- /var/cache/apt/archives/*.deb
|
|
- Toolchain/Cache/
|
|
|
|
notifications:
|
|
irc:
|
|
channels:
|
|
- "chat.freenode.net#serenityos"
|
|
template:
|
|
- "%{repository_slug}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
|
|
- "Subject: %{commit_subject}"
|
|
- "Details: %{build_url}"
|
|
|
|
before_install:
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install -y g++-8 libstdc++-8-dev 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 python2 -m pip install cmake
|
|
- export PATH=/usr/local/bin/:$PATH
|
|
- cmake --version
|
|
|
|
script:
|
|
- export SERENITY_ROOT=$(pwd)
|
|
- Meta/lint-shell-scripts.sh
|
|
- Meta/check-style.sh
|
|
- cd Toolchain
|
|
- TRY_USE_LOCAL_TOOLCHAIN=y ./BuildIt.sh
|
|
- cd "$SERENITY_ROOT"
|
|
- mkdir -p Build
|
|
- cd Build
|
|
- cmake .. -DBUILD_LAGOM=1
|
|
- make
|
|
- make test
|
|
- cd "$SERENITY_ROOT"/Libraries/LibJS/Tests
|
|
- ./run-tests.sh
|
|
- cd "$SERENITY_ROOT"/Toolchain/Cache
|
|
- du -ch * || true
|