Commit graph

13 commits

Author SHA1 Message Date
Emanuele Torre
937d0be762 Meta: Add a script check the presence of "#pragma once" in header files
.. 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.
2020-05-29 07:59:45 +02:00
Sergey Bugaev
450a2a0f9c Build: Switch to CMake :^)
Closes https://github.com/SerenityOS/serenity/issues/2080
2020-05-14 20:15:18 +02:00
Linus Groh
358694567f Meta: Add script to enforce license headers & run it on Travis 2020-05-09 23:55:58 +02:00
Linus Groh
660fd04063 Meta: Build Lagom js and run LibJS tests on Travis 2020-04-20 22:44:13 +02:00
Ben Wiederhake
36ba0a35ee Travis: Cache toolchain
This should give a significant boost to Travis speeds, because most of the
compile time is spent building the toolchain over and over again.
However, the toolchain (or libc or libm) changes only rarely,
so most rebuilds can skip this step.

The hashing has been put into a separate file to keep it
as decoupled as possible from BuiltIt.sh.
2020-03-08 14:09:08 +01:00
Nicolas Van Bossuyt
12504b52d2
CI: Update .travis.yml (#1334)
According to the Travis build config validation, the `sudo` key does
nothing and `os` should be specified.
2020-03-02 06:26:34 +01:00
Shannon Booth
084e67f267 Meta: Integrate Shellcheck into Travis
lint-shell-scripts searches over the repository looking for shell
scripts. On those found, shellcheck is run against them. If any linting
fails print those warnings and exit with a non-zero exit code.

Run this script automatically in Travis.
2020-02-10 10:46:25 +01:00
Andreas Kling
70865e5a5d Travis: We don't have UseIt.sh anymore :^) 2019-12-21 00:19:49 +01:00
Andreas Kling
14a228a6f8 Meta: Let's try giving Travis some valid YAML this time.. 2019-09-04 11:45:43 +02:00
Andreas Kling
6126edcd75 Meta: Try showing the commit subject in IRC notifications
Hopefully I got the travis-ci notifications syntax right!
2019-09-03 22:18:11 +02:00
Andreas Kling
26956db5ac Travis: Try to install a modern C++ compiler for host compilations.
It seems like the newest Ubuntu supported by Travis is 16.04. The bundled
gcc is unable to compile the trendy and modern Serenity code, so let's try
to install a newer GCC on the CI bot. :^)
2019-07-10 22:03:46 +02:00
Andreas Kling
59dae9a766 Make sure the CI has qemu-utils installed. 2019-06-04 16:38:14 +02:00
Robin Burchell
a942fa2ed3 Add .travis.yml 2019-05-28 17:04:09 +02:00