summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: b0b1876e9fc54262511b12d31152edbff885282b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
os: linux
dist: xenial

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

script:
- export SERENITY_ROOT=$(pwd)
- cd Toolchain
- TRY_USE_LOCAL_TOOLCHAIN=y ./BuildIt.sh
- cd ../Kernel
- ./makeall.sh
- ../Meta/lint-shell-scripts.sh
- ../Meta/check-license-headers.sh
- ../Meta/Lagom/build-js.sh
- cd ../Libraries/LibJS/Tests
- ./run-tests
- cd ../../../Toolchain/Cache
- du -ch * || true