Skip to content

Commit 43fd38d

Browse files
yetistraveit65
authored andcommitted
Add -Werror=format-security and show make distcheck failed with color
1 parent 5dda92e commit 43fd38d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎.travis.yml‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ requires:
129129
- yelp-tools
130130

131131
variables:
132-
- CFLAGS="-Wall"
132+
- CFLAGS="-Wall -Werror=format-security"
133133

134134
before_scripts:
135135
# These scripts should keep silent.
136136
- cd ${START_DIR}
137-
- "[ -f mate-desktop-1.21.2.tar.xz ] || curl -Ls -o mate-desktop-1.21.2.tar.xz http://pub.mate-desktop.org/releases/1.21/mate-desktop-1.21.2.tar.xz"
137+
- '[ -f mate-desktop-1.21.2.tar.xz ] || curl -Ls -o mate-desktop-1.21.2.tar.xz http://pub.mate-desktop.org/releases/1.21/mate-desktop-1.21.2.tar.xz'
138138
- tar xf mate-desktop-1.21.2.tar.xz
139139
- cd mate-desktop-1.21.2
140140
- if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu >/dev/null 2>&1; else ./configure --prefix=/usr >/dev/null 2>&1; fi
@@ -150,13 +150,14 @@ before_scripts:
150150
- make install > /dev/null 2>&1
151151

152152
- cd ${START_DIR}
153-
- "[ -f mate-settings-daemon-1.21.2.tar.xz ] || curl -Ls -o mate-settings-daemon-1.21.2.tar.xz http://pub.mate-desktop.org/releases/1.21/mate-settings-daemon-1.21.2.tar.xz"
153+
- '[ -f mate-settings-daemon-1.21.2.tar.xz ] || curl -Ls -o mate-settings-daemon-1.21.2.tar.xz http://pub.mate-desktop.org/releases/1.21/mate-settings-daemon-1.21.2.tar.xz'
154154
- tar xf mate-settings-daemon-1.21.2.tar.xz
155155
- cd mate-settings-daemon-1.21.2
156156
- if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu >/dev/null 2>&1; else ./configure --prefix=/usr >/dev/null 2>&1; fi
157157
- make > /dev/null 2>&1
158158
- make install > /dev/null 2>&1
159159

160160
after_scripts:
161-
# Just look at the error output and return 0 if it fails.
162-
- make distcheck || true > /dev/null
161+
- make distcheck > /dev/null
162+
# Just look at the error output and return 0 always.
163+
- 'if [ $? -ne 0 ];then RED="\033[0;31m"; NC="\033[0m"; printf "${RED}!!! ERROR: Run make distcheck failed.${NC}\n"; fi'

0 commit comments

Comments
 (0)