mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
13ae9e9a93
This removes the global logger (which by the way was deleted when the first tox was killed, so other toxes would then stop logging). Various bits of the code now carry a logger or pass it around. It's a bit less transparent now, but now there is no need to have a global logger, and clients can decide what to log and where.
18 lines
469 B
Bash
Executable File
18 lines
469 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e -u -x
|
|
. other/travis/env-$ENV.sh
|
|
|
|
# Check if the code is formatted according to the astyle configuration.
|
|
other/astyle/format-source
|
|
git diff --exit-code
|
|
|
|
# Build toxcore and run tests.
|
|
export CFLAGS="-O3 -fprofile-arcs -ftest-coverage -DTRAVIS_ENV=1"
|
|
RUN $CMAKE -B$BUILD_DIR -H. -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDEBUG=ON -DASSOC_DHT=ON
|
|
|
|
export CTEST_OUTPUT_ON_FAILURE=1
|
|
|
|
RUN $MAKE -C $BUILD_DIR -j$NPROC -k
|
|
RUN $MAKE -C $BUILD_DIR -j$NPROC test
|