mirror of https://github.com/n1nj4sec/pupy.git
Add travis
This commit is contained in:
parent
a828f599e6
commit
e74aad2adc
|
@ -0,0 +1,45 @@
|
||||||
|
sudo: required
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- sudo dpkg --add-architecture i386
|
||||||
|
- sudo apt-get update >/dev/null
|
||||||
|
- sh -e /etc/init.d/xvfb start
|
||||||
|
- sleep 3
|
||||||
|
|
||||||
|
install:
|
||||||
|
- sudo -E apt-get -y install mingw-w64 g++-mingw-w64-x86-64 g++-mingw-w64-i686 debootstrap
|
||||||
|
make wine xvfb python-pip >/dev/null
|
||||||
|
- pip install pylzma
|
||||||
|
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
|
||||||
|
dist: stretch
|
||||||
|
|
||||||
|
cache:
|
||||||
|
- apt: true
|
||||||
|
|
||||||
|
script:
|
||||||
|
- cd $TRAVIS_BUILD_DIR/client/sources-linux && sudo -E ./buildenv.sh >/dev/null && sudo -E ./build.sh
|
||||||
|
- cd $TRAVIS_BUILD_DIR/client/sources && ./buildenv.sh >/dev/null && ./build.sh
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
|
- export REPO=alxchk/pupy
|
||||||
|
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
|
||||||
|
- cd $TRAVIS_BUILD_DIR/pupy && docker build -f Dockerfile -t $REPO:$COMMIT .
|
||||||
|
- cd $TRAVIS_BUILD_DIR/pupy && docker tag $REPO:$COMMIT $REPO:$TAG
|
||||||
|
- cd $TRAVIS_BUILD_DIR/pupy && docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
|
||||||
|
- cd $TRAVIS_BUILD_DIR/pupy && docker push $REPO >/dev/null
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
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c36gAQClRgmHFgmM5WkIOQy/lyRKDUkM7/JUsE50=
|
|
@ -31,7 +31,7 @@ if [ ! -d buildenv/downloads ]; then
|
||||||
"$DBUS_SRC" "$DBUS_GLIB_SRC" "$GOBJECT_INTROSPECTION" \
|
"$DBUS_SRC" "$DBUS_GLIB_SRC" "$GOBJECT_INTROSPECTION" \
|
||||||
"$PYGOBJECT" "$DBUS_PYTHON" "$M4_SRC" "$AUTOCONF_SRC" \
|
"$PYGOBJECT" "$DBUS_PYTHON" "$M4_SRC" "$AUTOCONF_SRC" \
|
||||||
"$AUTOMAKE_SRC" ; do
|
"$AUTOMAKE_SRC" ; do
|
||||||
wget -c "$bin"
|
wget -qc "$bin"
|
||||||
done
|
done
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ if [ ! $? -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for dist in $PYTHON32 $PYTHON64 $PYTHONVC $WINETRICKS; do
|
for dist in $PYTHON32 $PYTHON64 $PYTHONVC $WINETRICKS; do
|
||||||
wget -cP $DOWNLOADS $dist
|
wget -qcP $DOWNLOADS $dist
|
||||||
done
|
done
|
||||||
|
|
||||||
for prefix in $WINE32 $WINE64; do
|
for prefix in $WINE32 $WINE64; do
|
||||||
|
@ -97,7 +97,7 @@ for prefix in $WINE32 $WINE64; do
|
||||||
WINEPREFIX=$prefix wine C:\\Python27\\python -O -m pip install --upgrade setuptools
|
WINEPREFIX=$prefix wine C:\\Python27\\python -O -m pip install --upgrade setuptools
|
||||||
WINEPREFIX=$prefix wine C:\\Python27\\python -O -m pip install --upgrade $PACKAGES
|
WINEPREFIX=$prefix wine C:\\Python27\\python -O -m pip install --upgrade $PACKAGES
|
||||||
WINEPREFIX=$prefix wine C:\\Python27\\python -O -m pip install --upgrade --no-binary :all: psutil
|
WINEPREFIX=$prefix wine C:\\Python27\\python -O -m pip install --upgrade --no-binary :all: psutil
|
||||||
WINEPREFIX=$prefix wine C:\\Python27\\python -O -m compileall C:\\Python27\\Lib || true
|
WINEPREFIX=$prefix wine C:\\Python27\\python -O -m compileall -q C:\\Python27\\Lib || true
|
||||||
done
|
done
|
||||||
|
|
||||||
# WINEPREFIX=$WINE32 wine C:\\Python27\\python.exe -m easy_install -Z $PYWIN32
|
# WINEPREFIX=$WINE32 wine C:\\Python27\\python.exe -m easy_install -Z $PYWIN32
|
||||||
|
@ -175,7 +175,7 @@ cd $WINE32/drive_c/Python27
|
||||||
rm -f ${TEMPLATES}/windows-x86.zip
|
rm -f ${TEMPLATES}/windows-x86.zip
|
||||||
for dir in Lib DLLs; do
|
for dir in Lib DLLs; do
|
||||||
cd $dir
|
cd $dir
|
||||||
zip -y \
|
zip -q -y \
|
||||||
-x "*.a" -x "*.o" -x "*.whl" -x "*.txt" -x "*.py" \
|
-x "*.a" -x "*.o" -x "*.whl" -x "*.txt" -x "*.py" \
|
||||||
-x "*test/*" -x "*tests/*" -x "*examples/*" \
|
-x "*test/*" -x "*tests/*" -x "*examples/*" \
|
||||||
-r9 ${TEMPLATES}/windows-x86.zip .
|
-r9 ${TEMPLATES}/windows-x86.zip .
|
||||||
|
@ -187,7 +187,7 @@ rm -f ${TEMPLATES}/windows-amd64.zip
|
||||||
|
|
||||||
for dir in Lib DLLs; do
|
for dir in Lib DLLs; do
|
||||||
cd $dir
|
cd $dir
|
||||||
zip -y \
|
zip -q -y \
|
||||||
-x "*.a" -x "*.o" -x "*.whl" -x "*.txt" -x "*.py" \
|
-x "*.a" -x "*.o" -x "*.whl" -x "*.txt" -x "*.py" \
|
||||||
-x "*test/*" -x "*tests/*" -x "*examples/*" \
|
-x "*test/*" -x "*tests/*" -x "*examples/*" \
|
||||||
-r9 ${TEMPLATES}/windows-amd64.zip .
|
-r9 ${TEMPLATES}/windows-amd64.zip .
|
||||||
|
|
Loading…
Reference in New Issue