Update Travis.
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
os: Visual Studio 2015
|
os: Visual Studio 2015
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
global: { TRAVIS_OS_NAME: windows, CROSS: "", C: "", B: release, T: "" }
|
global: { TRAVIS_OS_NAME: windows, CROSS: "", C: "", B: release, T: "", X: "" }
|
||||||
matrix:
|
matrix:
|
||||||
- { C: msvc-10.0-x86, CL_VERSION: 16.00, VS_VERSION: 2010 }
|
- { C: msvc-10.0-x86, CL_VERSION: 16.00, VS_VERSION: 2010 }
|
||||||
### - { C: msvc-10.0-x64, CL_VERSION: 16.00, VS_VERSION: 2010 } # AppVeyor: x64 compiler is not installed
|
### - { C: msvc-10.0-x64, CL_VERSION: 16.00, VS_VERSION: 2010 } # AppVeyor: x64 compiler is not installed
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ machine:
|
|||||||
C: gcc-4.8-m64
|
C: gcc-4.8-m64
|
||||||
B: release
|
B: release
|
||||||
T:
|
T:
|
||||||
|
X:
|
||||||
|
|
||||||
checkout:
|
checkout:
|
||||||
post:
|
post:
|
||||||
|
|||||||
@@ -34,6 +34,33 @@ fi # linux
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
#
|
||||||
|
# rebuild UPX stubs (needs upx-stubtools)
|
||||||
|
#
|
||||||
|
|
||||||
|
if [[ $BM_X =~ (^|\+)rebuild-stubs($|\+) ]]; then
|
||||||
|
bin_upx=$(readlink -en -- "$upx_SRCDIR/../deps/bin-upx-20160918")
|
||||||
|
cd / && cd $upx_SRCDIR || exit 1
|
||||||
|
make -C src/stub maintainer-clean
|
||||||
|
failed=0
|
||||||
|
PATH="$bin_upx:$PATH" make -C src/stub all || failed=1
|
||||||
|
if [[ $failed != 0 ]]; then
|
||||||
|
echo "UPX-ERROR: FATAL: rebuild-stubs failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if ! git diff --quiet; then
|
||||||
|
git status || true
|
||||||
|
git diff || true
|
||||||
|
echo "UPX-ERROR: FATAL: rebuild-stubs git status mismatch. See log file."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [[ $BM_X == rebuild-stubs ]]; then
|
||||||
|
echo "X=rebuild-stubs done. Exiting."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
unset bin_upx failed
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# build UCL
|
# build UCL
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -5,13 +5,15 @@
|
|||||||
|
|
||||||
#set -x # debug
|
#set -x # debug
|
||||||
umask 022
|
umask 022
|
||||||
|
export GIT_PAGER=
|
||||||
|
|
||||||
# rename short variables to more readable Build-Matrix BM_ names
|
# rename short variables to more readable Build-Matrix BM_ names
|
||||||
# C is COMPILER
|
# C is COMPILER
|
||||||
# B is BUILD_OPTIONS
|
# B is BUILD_OPTIONS
|
||||||
# T is TESTSUITE_OPTIONS
|
# T is TESTSUITE_OPTIONS
|
||||||
BM_CROSS=$CROSS; BM_C=$C; BM_B=$B; BM_T=$T
|
# X is EXTRA_OPTIONS
|
||||||
unset CROSS C B T
|
BM_CROSS=$CROSS; BM_C=$C; BM_B=$B; BM_T=$T; BM_X=$X
|
||||||
|
unset CROSS C B T X
|
||||||
[[ -z $BM_C ]] && BM_C=gcc
|
[[ -z $BM_C ]] && BM_C=gcc
|
||||||
[[ -z $BM_B ]] && BM_B=release
|
[[ -z $BM_B ]] && BM_B=release
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -10,6 +10,8 @@
|
|||||||
glibc-devel.i686 libasan.i686 libstdc++-devel.i686 libubsan.i686 zlib-devel.i686
|
glibc-devel.i686 libasan.i686 libstdc++-devel.i686 libubsan.i686 zlib-devel.i686
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- export TRAVIS_OS_NAME=linux
|
||||||
|
- unset CROSS C B T X
|
||||||
- uname -a; pwd; id; umask; env
|
- uname -a; pwd; id; umask; env
|
||||||
- time rpm -qa | LC_ALL=C sort
|
- time rpm -qa | LC_ALL=C sort
|
||||||
- *fedora_install_compilers
|
- *fedora_install_compilers
|
||||||
@@ -19,7 +21,6 @@ before_script:
|
|||||||
- cd ../deps && time wget -q -O - https://github.com/upx/upx/releases/download/v3.00/zlib-1.2.8.tar.xz | tar -xJ
|
- cd ../deps && time wget -q -O - https://github.com/upx/upx/releases/download/v3.00/zlib-1.2.8.tar.xz | tar -xJ
|
||||||
- cd ../deps && time git clone https://github.com/upx/upx-testsuite
|
- cd ../deps && time git clone https://github.com/upx/upx-testsuite
|
||||||
- cd $CI_PROJECT_DIR
|
- cd $CI_PROJECT_DIR
|
||||||
- export TRAVIS_OS_NAME=linux
|
|
||||||
|
|
||||||
Fedora23-clang+gcc-m32+m64:
|
Fedora23-clang+gcc-m32+m64:
|
||||||
image: fedora:23
|
image: fedora:23
|
||||||
|
|||||||
+8
-1
@@ -23,7 +23,7 @@ branches:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- CROSS= C= B= T=
|
- CROSS= C= B= T= X=
|
||||||
matrix:
|
matrix:
|
||||||
- TRAVIS_EMPTY_JOB_WORKAROUND=true
|
- TRAVIS_EMPTY_JOB_WORKAROUND=true
|
||||||
|
|
||||||
@@ -31,6 +31,12 @@ matrix:
|
|||||||
exclude:
|
exclude:
|
||||||
- env: TRAVIS_EMPTY_JOB_WORKAROUND=true
|
- env: TRAVIS_EMPTY_JOB_WORKAROUND=true
|
||||||
include:
|
include:
|
||||||
|
- os: linux
|
||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
|
compiler: gcc
|
||||||
|
env: X=rebuild-stubs
|
||||||
|
addons: { apt: { packages: [ "g++-multilib", "lib32z1" ] } }
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
env: C=gcc-4.4-m32
|
env: C=gcc-4.4-m32
|
||||||
@@ -185,6 +191,7 @@ install:
|
|||||||
- cd ../deps && travis_retry wget -q -O - https://github.com/upx/upx/releases/download/v3.00/ucl-1.03.tar.xz | tar -xJ
|
- cd ../deps && travis_retry wget -q -O - https://github.com/upx/upx/releases/download/v3.00/ucl-1.03.tar.xz | tar -xJ
|
||||||
- cd ../deps && travis_retry wget -q -O - https://github.com/upx/upx/releases/download/v3.00/zlib-1.2.8.tar.xz | tar -xJ
|
- cd ../deps && travis_retry wget -q -O - https://github.com/upx/upx/releases/download/v3.00/zlib-1.2.8.tar.xz | tar -xJ
|
||||||
- cd ../deps && travis_retry git clone https://github.com/upx/upx-testsuite
|
- cd ../deps && travis_retry git clone https://github.com/upx/upx-testsuite
|
||||||
|
- if [[ $X =~ (^|\+)rebuild-stubs($|\+) ]]; then cd ../deps && travis_retry wget -q -O - https://github.com/upx/upx-stubtools/releases/download/v20160918/bin-upx-20160918.tar.xz | tar -xJ; fi
|
||||||
- |
|
- |
|
||||||
cd /
|
cd /
|
||||||
if [[ $TRAVIS_OS_NAME == linux ]]; then
|
if [[ $TRAVIS_OS_NAME == linux ]]; then
|
||||||
|
|||||||
+2
-2
@@ -98,7 +98,7 @@ ifeq ($(BUILD_USE_DEPEND),1)
|
|||||||
./.depend: $(sort $(wildcard $(srcdir)/*.cpp $(srcdir)/*.h)) $(MAKEFILE_LIST)
|
./.depend: $(sort $(wildcard $(srcdir)/*.cpp $(srcdir)/*.h)) $(MAKEFILE_LIST)
|
||||||
@rm -f $@
|
@rm -f $@
|
||||||
@echo "Updating $@"
|
@echo "Updating $@"
|
||||||
@$(strip $(CXX) $(call ee,CPPFLAGS) -MM) $(filter %.cpp,$^) > $@
|
@$(strip $(CXX) $(call ee,CPPFLAGS) $(call ee,CXXFLAGS) -MM) $(filter %.cpp,$^) > $@
|
||||||
else
|
else
|
||||||
./.depend:
|
./.depend:
|
||||||
.PHONY: ./.depend
|
.PHONY: ./.depend
|
||||||
@@ -115,7 +115,7 @@ endif
|
|||||||
.PHONY: check-whitespace
|
.PHONY: check-whitespace
|
||||||
|
|
||||||
mostlyclean clean distclean maintainer-clean:
|
mostlyclean clean distclean maintainer-clean:
|
||||||
rm -f *.d *.map *.o *.obj *.res ./.depend upx.exe upx.out upx.ttp upx$(exeext)
|
rm -f *.d *.ii *.map *.o *.obj *.res ./.depend upx.exe upx.out upx.ttp upx$(exeext)
|
||||||
|
|
||||||
./.depend compress_lzma$(objext) : INCLUDES += -I$(UPX_LZMADIR)
|
./.depend compress_lzma$(objext) : INCLUDES += -I$(UPX_LZMADIR)
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ LC_ALL=C sort -z | xargs -0r perl -n -e '
|
|||||||
if ($ARGV =~ m,(^|/)\.gitmodules$,) { }
|
if ($ARGV =~ m,(^|/)\.gitmodules$,) { }
|
||||||
elsif ($ARGV =~ m,(^|/)(gnu|m)?make(file|vars),i) { }
|
elsif ($ARGV =~ m,(^|/)(gnu|m)?make(file|vars),i) { }
|
||||||
elsif ($ARGV =~ m,/tmp/.*\.(disasm|dump)$,) { }
|
elsif ($ARGV =~ m,/tmp/.*\.(disasm|dump)$,) { }
|
||||||
elsif ($ARGV =~ m,/src/stub/src/arch/.*/lzma.*\.S$,) { }
|
elsif ($ARGV =~ m,/src/stub/src/arch/.*/lzma\w+\.S$,) { }
|
||||||
else { print "ERROR: hard TAB detected $ARGV: $_"; exit(1); }
|
else { print "ERROR: hard TAB detected $ARGV: $_"; exit(1); }
|
||||||
}
|
}
|
||||||
' || exit 1
|
' || exit 1
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ git ls-files --full-name -z | perl -0 -n -e '
|
|||||||
if ($ARGV =~ m,(^|/)\.gitmodules$,) { }
|
if ($ARGV =~ m,(^|/)\.gitmodules$,) { }
|
||||||
elsif ($ARGV =~ m,(^|/)(gnu|m)?make(file|vars),i) { }
|
elsif ($ARGV =~ m,(^|/)(gnu|m)?make(file|vars),i) { }
|
||||||
elsif ($ARGV =~ m,/tmp/.*\.(disasm|dump)$,) { }
|
elsif ($ARGV =~ m,/tmp/.*\.(disasm|dump)$,) { }
|
||||||
elsif ($ARGV =~ m,/src/stub/src/arch/.*/lzma.*\.S$,) { }
|
elsif ($ARGV =~ m,/src/stub/src/arch/.*/lzma\w+\.S$,) { }
|
||||||
else { print "ERROR: hard TAB detected $ARGV: $_"; exit(1); }
|
else { print "ERROR: hard TAB detected $ARGV: $_"; exit(1); }
|
||||||
}
|
}
|
||||||
' || exit 1
|
' || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user