serenity/.travis.yml

61 lines
1.8 KiB
YAML
Raw Normal View History

os: linux
2020-09-13 22:02:29 +02:00
dist: focal
2019-05-28 14:47:24 +02:00
language: cpp
compiler:
- gcc
cache:
2020-07-26 13:44:27 -06:00
ccache: true
2019-05-28 14:47:24 +02:00
directories:
- Toolchain/Cache/
2019-05-28 14:47:24 +02:00
notifications:
irc:
if: repo = SerenityOS/serenity
channels:
- "chat.freenode.net#serenityos"
template:
- "%{repository_slug}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
- "Subject: %{commit_subject}"
- "Details: %{build_url}"
2019-05-28 14:47:24 +02:00
before_install:
- sudo apt-get update -qq
2020-09-13 22:02:29 +02:00
# These packages are already part of the Travis image:
#- sudo apt-get install -y cmake shellcheck
# Remove GCC 9 (installed by default) and replace it with GCC 10:
- sudo apt-get purge -y g++-9 libstdc++-9-dev
2020-09-13 22:02:29 +02:00
# These aren't:
- sudo apt-get install -y g++-10 libstdc++-10-dev libmpfr-dev libmpc-dev libgmp-dev clang-format-10
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 60 --slave /usr/bin/g++ g++ /usr/bin/g++-10
2020-09-13 22:02:29 +02:00
# If we ever do any qemu-emulation on Travis, we should re-enable this:
#- e2fsprogs qemu-system-i386 qemu-utils
- g++ --version
- cmake --version
2020-09-13 22:02:29 +02:00
- shellcheck --version
2019-05-28 14:47:24 +02:00
script:
- export SERENITY_ROOT="$(pwd)"
- Meta/check-style.sh
- Meta/lint-clang-format.sh --overwrite-inplace && git diff --exit-code
- Meta/lint-executable-resources.sh
- Meta/lint-ipc-ids.sh
- Meta/lint-shell-scripts.sh
2019-05-28 14:47:24 +02:00
- cd Toolchain
- TRY_USE_LOCAL_TOOLCHAIN=y ./BuildIt.sh
- cd "$SERENITY_ROOT"
- mkdir -p Build
- cd Build
- cmake .. -DBUILD_LAGOM=1 -DALL_THE_DEBUG_MACROS=1
- make -j2
- ../Meta/check-symbols.sh
- CTEST_OUTPUT_ON_FAILURE=1 make test
- cd Meta/Lagom
- DISABLE_DBG_OUTPUT=1 ./test-js
# These feel like they should go into a script. However, that would be a Travis-specific script, and this is *the* right place for travis-specific stuff.
- cd "$SERENITY_ROOT"/Toolchain/Cache
- du -ch * || true
- du -sch /home/travis/.ccache/* || true