return 1 on failure

develop
tastytea 2018-08-30 18:15:14 +02:00
parent 1c3ae00f95
commit 19e6c28d41
No known key found for this signature in database
GPG Key ID: CFC39497F1B26E07
2 changed files with 12 additions and 3 deletions

View File

@ -23,8 +23,11 @@ pipeline:
image: gcc:6 image: gcc:6
pull: true pull: true
commands: commands:
- echo "deb http://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/backports.list
- echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
- apt-get update -q - apt-get update -q
- apt-get install -qy cmake libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev - apt-get install -qy -t jessie-backports cmake
- apt-get install -qy libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev
- rm -rf build && mkdir -p build && cd build - rm -rf build && mkdir -p build && cd build
- cmake .. - cmake ..
- make VERBOSE=1 - make VERBOSE=1
@ -33,8 +36,11 @@ pipeline:
image: gcc:5 image: gcc:5
pull: true pull: true
commands: commands:
- echo "deb http://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/backports.list
- echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
- apt-get update -q - apt-get update -q
- apt-get install -qy cmake libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev - apt-get install -qy -t jessie-backports cmake
- apt-get install -qy libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev
- rm -rf build && mkdir -p build && cd build - rm -rf build && mkdir -p build && cd build
- cmake .. - cmake ..
- make VERBOSE=1 - make VERBOSE=1

View File

@ -178,7 +178,10 @@ const bool details(const string &user, result_details &result)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
whyblocked_text::start(); if (!whyblocked_text::start())
{
return 1;
}
return 0; return 0;
} }