mirror of https://github.com/n1nj4sec/pupy.git
Try to speedup build
This commit is contained in:
parent
89d7061aaa
commit
6c512a579c
35
.travis.yml
35
.travis.yml
|
@ -1,14 +1,14 @@
|
||||||
sudo: required
|
sudo: required
|
||||||
language: c
|
language: c
|
||||||
before_install:
|
before_install:
|
||||||
|
- df -h
|
||||||
- sudo dpkg --add-architecture i386
|
- sudo dpkg --add-architecture i386
|
||||||
- sudo apt-get update >/dev/null
|
- sudo apt-get update >/dev/null
|
||||||
- sh -e /etc/init.d/xvfb start
|
|
||||||
- sleep 3
|
|
||||||
install:
|
install:
|
||||||
- sudo -E apt-get -y install mingw-w64 g++-mingw-w64-x86-64 g++-mingw-w64-i686 debootstrap cython
|
- sudo -E apt-get -y install mingw-w64 g++-mingw-w64-x86-64 g++-mingw-w64-i686 debootstrap cython
|
||||||
make wine xvfb python-pip >/dev/null
|
make wine xvfb python-pip >/dev/null
|
||||||
- pip install pylzma
|
- pip install --user pylzma
|
||||||
|
- pip install --user git+https://github.com/kivy/buildozer
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
os:
|
os:
|
||||||
|
@ -19,20 +19,33 @@ before_script:
|
||||||
- if [ -f $HOME/.cache/win.tgz ]; then tar -C $TRAVIS_BUILD_DIR/client/sources -zxf $HOME/.cache/win.tgz; fi
|
- if [ -f $HOME/.cache/win.tgz ]; then tar -C $TRAVIS_BUILD_DIR/client/sources -zxf $HOME/.cache/win.tgz; fi
|
||||||
- if [ -f $HOME/.cache/lin.tgz ]; then sudo -E tar -C $TRAVIS_BUILD_DIR/client/sources-linux -zxf $HOME/.cache/lin.tgz; fi
|
- if [ -f $HOME/.cache/lin.tgz ]; then sudo -E tar -C $TRAVIS_BUILD_DIR/client/sources-linux -zxf $HOME/.cache/lin.tgz; fi
|
||||||
- if [ -f $HOME/.cache/android.tgz ]; then tar -C $HOME -zxf $HOME/.cache/android.tgz; fi
|
- if [ -f $HOME/.cache/android.tgz ]; then tar -C $HOME -zxf $HOME/.cache/android.tgz; fi
|
||||||
|
- if [ -f $HOME/.cache/android-app.tgz ]; then tar -C $TRAVIS_BUILD_DIR/client/android_sources -zxf $HOME/.cache/android-app.tgz; fi
|
||||||
script:
|
script:
|
||||||
- cd $TRAVIS_BUILD_DIR/client/android_sources && ./build.sh
|
- sh -e /etc/init.d/xvfb start || systemctl start xvfb
|
||||||
- cd $TRAVIS_BUILD_DIR/client/sources && ./buildenv.sh
|
- sleep 3
|
||||||
- cd $TRAVIS_BUILD_DIR/client/sources && ./build.sh
|
- ( cd $TRAVIS_BUILD_DIR/client/sources && ./buildenv.sh ) &
|
||||||
- cd $TRAVIS_BUILD_DIR/client/sources-linux && sudo -E ./buildenv.sh
|
( cd $TRAVIS_BUILD_DIR/client/sources-linux && sudo -E ./buildenv.sh ) &
|
||||||
- cd $TRAVIS_BUILD_DIR/client/sources-linux && sudo -E ./build.sh
|
( cd $TRAVIS_BUILD_DIR/client/android_sources && ln -sf buildozer.spec.example buildozer.spec && buildozer android update ) & wait
|
||||||
|
- ( cd $TRAVIS_BUILD_DIR/client/sources && ./build.sh ) &
|
||||||
|
( cd $TRAVIS_BUILD_DIR/client/sources-linux && sudo -E ./build.sh ) &
|
||||||
|
( cd $TRAVIS_BUILD_DIR/client/android_sources && buildozer android release; mv .buildozer/android/platform/build/dists/pupy/bin/Wi-Fi-0.1-release-unsigned.apk ../../pupy/payload_templates/pupy.apk ) & wait
|
||||||
before_cache:
|
before_cache:
|
||||||
- tar -C $TRAVIS_BUILD_DIR/client/sources -zcf $HOME/.cache/win.tgz buildenv
|
- ( if [ ! -f $HOME/.cache/win.tgz ]; then tar --remove-files -C $TRAVIS_BUILD_DIR/client/sources -zcf $HOME/.cache/win.tgz buildenv; fi; rm -rf $TRAVIS_BUILD_DIR/client/sources/buildenv ) &
|
||||||
- sudo -E tar -C $TRAVIS_BUILD_DIR/client/sources-linux -zcf $HOME/.cache/lin.tgz buildenv
|
( if [ ! -f $HOME/.cache/lin.tgz ]; then sudo -E tar --remove-files -C $TRAVIS_BUILD_DIR/client/sources-linux -zcf $HOME/.cache/lin.tgz buildenv; fi; rm -rf $TRAVIS_BUILD_DIR/client/sources-linux/buildenv ) &
|
||||||
- tar -C $HOME -zcf .buildozer
|
( if [ ! -f $HOME/.cache/android-app.tgz ]; then tar --remove-files -C $TRAVIS_BUILD_DIR/client/android_sources -zcf .buildozer; fi; rm -rf $TRAVIS_BUILD_DIR/client/android_sources/.buildozer ) &
|
||||||
|
( if [ ! -f $HOME/.cache/android.tgz ]; then
|
||||||
|
tar --remove-files -C $HOME -zcf $HOME/.cache/android.tgz
|
||||||
|
.android
|
||||||
|
.buildozer/android/platform/android-ndk-r9c/{build,platforms/android-19,platforms/android-9,prebuild,sources,toolchains/arm-*,ndk-*,GNUmakefile}
|
||||||
|
.buildozer/android/platform/android-sdk-20
|
||||||
|
.buildozer/android/platform/apache-ant-1.9.4;
|
||||||
|
fi; rm -rf $HOME/.buildozer ) & wait
|
||||||
cache:
|
cache:
|
||||||
apt: true
|
apt: true
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.cache
|
- $HOME/.cache
|
||||||
|
after_cache:
|
||||||
|
- rm -f $HOME/.cache/win.tgz $HOME/.cache/lin.tgz $HOME/.cache/android.tgz
|
||||||
after_success:
|
after_success:
|
||||||
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
- export REPO=alxchk/pupy
|
- export REPO=alxchk/pupy
|
||||||
|
|
|
@ -127,7 +127,7 @@ android.whitelist = lib-dynload/termios.so,lib-dynload/mmap.so,lib-dynload/_json
|
||||||
# (bool) If True, then skip trying to update the Android sdk
|
# (bool) If True, then skip trying to update the Android sdk
|
||||||
# This can be useful to avoid excess Internet downloads or save time
|
# This can be useful to avoid excess Internet downloads or save time
|
||||||
# when an update is due and you just want to test/build your package
|
# when an update is due and you just want to test/build your package
|
||||||
# android.skip_update = False
|
# android.skip_update = True
|
||||||
|
|
||||||
# (str) Bootstrap to use for android builds (android_new only)
|
# (str) Bootstrap to use for android builds (android_new only)
|
||||||
p4a.bootstrap = badservice
|
p4a.bootstrap = badservice
|
||||||
|
@ -211,7 +211,7 @@ android.arch = armeabi-v7a
|
||||||
[buildozer]
|
[buildozer]
|
||||||
|
|
||||||
# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
|
# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
|
||||||
log_level = 0
|
log_level = 1
|
||||||
|
|
||||||
# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
|
# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
|
||||||
warn_on_root = 0
|
warn_on_root = 0
|
||||||
|
|
Loading…
Reference in New Issue