mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
103 lines
4.2 KiB
YAML
103 lines
4.2 KiB
YAML
# Support for GibLab CI -- https://gitlab.com/
|
|
# Copyright (C) Markus Franz Xaver Johannes Oberhumer
|
|
|
|
before_script:
|
|
- export TRAVIS_OS_NAME=linux
|
|
- unset CROSS C B T X
|
|
- uname -a; pwd; id; umask; env
|
|
- cat /etc/os-release || true
|
|
-
|
|
if egrep -q '^PRETTY_NAME="?Fedora' /etc/os-release; then
|
|
time rpm -qa | LC_ALL=C sort;
|
|
time dnf install -y --best --allowerasing
|
|
coreutils curl diffutils grep gzip sed
|
|
bzip2 file findutils git perl tar wget which xz
|
|
clang gcc gcc-c++ lcov make valgrind
|
|
glibc-devel libasan libstdc++-devel libubsan zlib-devel
|
|
glibc-devel.i686 libasan.i686 libstdc++-devel.i686 libubsan.i686 zlib-devel.i686;
|
|
fi
|
|
-
|
|
if egrep -q '^PRETTY_NAME="?Ubuntu' /etc/os-release; then
|
|
export DEBIAN_FRONTEND=noninteractive;
|
|
time dpkg -l;
|
|
time apt-get -yq update;
|
|
time apt-get -yq --no-install-suggests --no-install-recommends --force-yes upgrade;
|
|
time apt-get -yq --no-install-suggests --no-install-recommends --force-yes install
|
|
build-essential ca-certificates curl file git wget xz-utils zlib1g-dev;
|
|
fi
|
|
-
|
|
if egrep -q '^PRETTY_NAME="?Ubuntu 16\.04' /etc/os-release; then
|
|
dpkg --add-architecture i386;
|
|
time apt-get -yq update;
|
|
time apt-get -yq --no-install-suggests --no-install-recommends --force-yes install
|
|
crossbuild-essential-arm64 crossbuild-essential-armel crossbuild-essential-armhf
|
|
crossbuild-essential-powerpc crossbuild-essential-ppc64el crossbuild-essential-s390x
|
|
qemu wine;
|
|
fi
|
|
- umask 022; mkdir -p ../deps ../build/gitlab
|
|
- time git submodule update --init --recursive
|
|
- cd ../deps && time wget -q -O - https://github.com/upx/upx/releases/download/v3.00/ucl-1.03.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 $CI_PROJECT_DIR; pwd
|
|
|
|
Fedora23-clang+gcc-m32+m64:
|
|
image: fedora:23
|
|
script:
|
|
- time C=clang-m32 bash ./.github/travis_build.sh
|
|
- time C=gcc-m32 bash ./.github/travis_build.sh
|
|
- time C=clang-m64 bash ./.github/travis_build.sh
|
|
- time C=gcc-m64 bash ./.github/travis_build.sh
|
|
- time C=gcc-m64 B=sanitize bash ./.github/travis_build.sh
|
|
- time C=clang-m32 bash ./.github/travis_testsuite_1.sh
|
|
- time C=gcc-m32 bash ./.github/travis_testsuite_1.sh
|
|
- time C=clang-m64 bash ./.github/travis_testsuite_1.sh
|
|
- time C=gcc-m64 bash ./.github/travis_testsuite_1.sh
|
|
- time C=gcc-m64 B=sanitize bash ./.github/travis_testsuite_1.sh
|
|
- time C=gcc-m64 T=valgrind bash ./.github/travis_testsuite_1.sh
|
|
tags: [ shared ]
|
|
except: [ tags ]
|
|
|
|
Fedora24-clang+gcc-m32+m64:
|
|
image: fedora:24
|
|
script:
|
|
- time C=clang-m32 bash ./.github/travis_build.sh
|
|
- time C=gcc-m32 bash ./.github/travis_build.sh
|
|
- time C=clang-m64 bash ./.github/travis_build.sh
|
|
- time C=gcc-m64 bash ./.github/travis_build.sh
|
|
- time C=gcc-m64 B=sanitize bash ./.github/travis_build.sh
|
|
- time C=clang-m32 bash ./.github/travis_testsuite_1.sh
|
|
- time C=gcc-m32 bash ./.github/travis_testsuite_1.sh
|
|
- time C=clang-m64 bash ./.github/travis_testsuite_1.sh
|
|
- time C=gcc-m64 bash ./.github/travis_testsuite_1.sh
|
|
- time C=gcc-m64 B=sanitize bash ./.github/travis_testsuite_1.sh
|
|
- time C=gcc-m64 T=valgrind bash ./.github/travis_testsuite_1.sh
|
|
tags: [ shared ]
|
|
except: [ tags ]
|
|
|
|
Ubuntu1204-gcc-m64:
|
|
image: ubuntu:12.04
|
|
script:
|
|
- time C=gcc-m64 bash ./.github/travis_build.sh
|
|
- time C=gcc-m64 bash ./.github/travis_testsuite_1.sh
|
|
tags: [ shared ]
|
|
except: [ tags ]
|
|
|
|
Ubuntu1404-gcc-m64:
|
|
image: ubuntu:14.04
|
|
script:
|
|
- time C=gcc-m64 bash ./.github/travis_build.sh
|
|
- time C=gcc-m64 bash ./.github/travis_testsuite_1.sh
|
|
tags: [ shared ]
|
|
except: [ tags ]
|
|
|
|
Ubuntu1604-gcc-m64:
|
|
image: ubuntu:16.04
|
|
script:
|
|
- time C=gcc-m64 bash ./.github/travis_build.sh
|
|
- time C=gcc-m64 bash ./.github/travis_testsuite_1.sh
|
|
tags: [ shared ]
|
|
except: [ tags ]
|
|
|
|
# vim:set ts=2 sw=2 et:
|