Codebase list i3-gaps / ca98c7e
Update travis for autotools Michael Stapelberg 7 years ago
7 changed file(s) with 24 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
3131 script:
3232 - docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 ${BASENAME} ./travis/check-safe-wrappers.sh
3333 - docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 ${BASENAME} ./travis/check-formatting.sh
34 - docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 -e CC -e CFLAGS="-Wformat -Wformat-security -Wextra -Wno-unused-parameter -Werror" ${BASENAME} make all mans -j ASAN=1
34 - docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 -e CC ${BASENAME} /bin/sh -c 'autoreconf -fi && mkdir -p build && cd build && (../configure || (cat config.log; false)) && make -j CFLAGS="-Wformat -Wformat-security -Wextra -Wno-unused-parameter -Werror"'
3535 - docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 ${BASENAME} ./travis/check-spelling.pl
3636 - docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 -e CC ${BASENAME} ./travis/run-tests.sh
3737 - ./travis/skip-pkg.sh || docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 ${BASENAME} ./travis/debian-build.sh deb/debian-amd64/DIST
00 @CODE_COVERAGE_RULES@
1
2 echo-version:
3 @echo "@I3_VERSION@"
14
25 bin_PROGRAMS = \
36 i3 \
3434 I3_VERSION="$(cat ${srcdir}/I3_VERSION)"
3535 is_release="$(grep -q non-git ${srcdir}/I3_VERSION && echo no || echo yes)"
3636 ])
37 AC_SUBST([I3_VERSION], [$I3_VERSION])
3738 MAJOR_VERSION="$(echo ${VERSION} | cut -d '.' -f 1)"
3839 MINOR_VERSION="$(echo ${VERSION} | cut -d '.' -f 2)"
3940 PATCH_VERSION="$(echo ${VERSION} | cut -d '.' -f 3)"
2828 'betwen' => 1, # asan_flags.inc contains this spelling error.
2929 };
3030 my @binaries = qw(
31 i3
32 i3-config-wizard/i3-config-wizard
33 i3-dump-log/i3-dump-log
34 i3-input/i3-input
35 i3-msg/i3-msg
36 i3-nagbar/i3-nagbar
37 i3bar/i3bar
31 build/i3
32 build/i3-config-wizard/i3-config-wizard
33 build/i3-dump-log/i3-dump-log
34 build/i3-input/i3-input
35 build/i3-msg/i3-msg
36 build/i3-nagbar/i3-nagbar
37 build/i3bar/i3bar
3838 );
3939 for my $binary (@binaries) {
4040 check_spelling(slurp($binary), $binary_spelling_exceptions, sub {
4949 my $manpage_spelling_exceptions = {
5050 };
5151
52 for my $name (glob('man/*.1')) {
52 for my $name (glob('build/man/*.1')) {
5353 for my $line (split(/\n/, slurp($name))) {
5454 next if $line =~ /^\.\\\"/o;
5555 check_spelling($line, $manpage_spelling_exceptions, sub {
22 set -e
33 set -x
44
5 mkdir -p deb/DIST-clang
5 mkdir -p deb/DIST-clang/build
66 tar xf *.tar.bz2 -C deb/DIST-clang --strip-components=1
7 (cd deb/DIST-clang && scan-build -o ../CLANG --html-title="Analysis of i3 v$(git describe --tags)" make -j8)
7 (cd deb/DIST-clang/build && scan-build -o ../../CLANG ../configure && scan-build -o ../../CLANG --html-title="Analysis of i3 v$(git describe --tags)" make -j8)
88 mv deb/CLANG/*/* deb/CLANG
44
55 DEST=$1
66
7 make store_git_version
8 make dist
7 mkdir -p build
8 cd build
9 ../configure
10 make echo-version > ../I3_VERSION
11 make dist-bzip2
912 # unpack dist tarball
1013 mkdir -p "${DEST}"
1114 tar xf *.tar.bz2 -C "${DEST}" --strip-components=1
12 cp -r debian "${DEST}"
15 cp -r ../debian "${DEST}"
1316 sed -i '/^\s*libxcb-xrm-dev/d' deb/ubuntu-*/DIST/debian/control || true
1417 cd "${DEST}"
1518 debchange -m -l+g$(git describe --tags) 'Automatically built'
22 set -e
33 set -x
44
5 cd testcases
5 cd build
66
77 # TODO: remove this workaround once https://bugs.debian.org/836723 is fixed
88 # Found at https://llvm.org/bugs/show_bug.cgi?id=27310#c8:
2525
2626 # Try running the tests in parallel so that the common case (tests pass) is
2727 # quick, but fall back to running them in sequence to make debugging easier.
28 if ! xvfb-run ./complete-run.pl
28 if ! xvfb-run make check
2929 then
30 xvfb-run ./complete-run.pl --parallel=1 || (cat latest/complete-run.log; false)
30 xvfb-run ./testcases/complete-run.pl --parallel=1 || (cat latest/complete-run.log; false)
3131 fi