2020-03-02 08:26:34 +03:00
|
|
|
os: linux
|
2020-05-06 18:40:06 +03:00
|
|
|
dist: bionic
|
2019-05-28 15:47:24 +03:00
|
|
|
|
|
|
|
language: cpp
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
|
|
|
|
cache:
|
2020-07-26 22:44:27 +03:00
|
|
|
ccache: true
|
2019-05-28 15:47:24 +03:00
|
|
|
directories:
|
|
|
|
- /var/cache/apt/archives/*.deb
|
2020-03-07 19:38:16 +03:00
|
|
|
- Toolchain/Cache/
|
2019-05-28 15:47:24 +03:00
|
|
|
|
|
|
|
notifications:
|
2019-09-04 12:45:43 +03:00
|
|
|
irc:
|
2020-06-25 22:07:05 +03:00
|
|
|
if: repo = SerenityOS/serenity
|
2019-09-04 12:45:43 +03:00
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#serenityos"
|
2019-09-03 23:16:43 +03:00
|
|
|
template:
|
|
|
|
- "%{repository_slug}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
|
|
|
|
- "Subject: %{commit_subject}"
|
|
|
|
- "Details: %{build_url}"
|
2019-05-28 15:47:24 +03:00
|
|
|
|
|
|
|
before_install:
|
2019-07-10 23:03:46 +03:00
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
|
|
- sudo apt-get update -qq
|
2020-05-06 18:40:06 +03:00
|
|
|
- sudo apt-get install -y g++-8 libstdc++-8-dev shellcheck libmpfr-dev libmpc-dev libgmp-dev e2fsprogs qemu-system-i386 qemu-utils
|
2019-07-10 23:03:46 +03:00
|
|
|
- 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
|
2020-05-06 18:40:06 +03:00
|
|
|
- sudo python2 -m pip install cmake
|
|
|
|
- export PATH=/usr/local/bin/:$PATH
|
|
|
|
- cmake --version
|
2019-05-28 15:47:24 +03:00
|
|
|
|
|
|
|
script:
|
2020-04-20 22:18:42 +03:00
|
|
|
- export SERENITY_ROOT=$(pwd)
|
2020-05-06 18:40:06 +03:00
|
|
|
- Meta/lint-shell-scripts.sh
|
2020-05-28 21:40:53 +03:00
|
|
|
- Meta/check-style.sh
|
2019-05-28 15:47:24 +03:00
|
|
|
- cd Toolchain
|
2020-03-07 19:38:16 +03:00
|
|
|
- TRY_USE_LOCAL_TOOLCHAIN=y ./BuildIt.sh
|
2020-05-06 18:40:06 +03:00
|
|
|
- cd "$SERENITY_ROOT"
|
|
|
|
- mkdir -p Build
|
|
|
|
- cd Build
|
|
|
|
- cmake .. -DBUILD_LAGOM=1
|
|
|
|
- make
|
2020-07-04 03:54:28 +03:00
|
|
|
- CTEST_OUTPUT_ON_FAILURE=1 make test
|
2020-07-04 21:50:24 +03:00
|
|
|
- cd Meta/Lagom
|
|
|
|
- ./test-js
|
2020-05-06 18:40:06 +03:00
|
|
|
- cd "$SERENITY_ROOT"/Toolchain/Cache
|
2020-04-20 22:18:42 +03:00
|
|
|
- du -ch * || true
|