mirror of https://github.com/n1nj4sec/pupy.git
Help travis to build cache in several steps
This commit is contained in:
parent
71eb2e46ac
commit
602817e178
22
.travis.yml
22
.travis.yml
|
@ -1,4 +1,5 @@
|
||||||
sudo: required
|
sudo: required
|
||||||
|
language: c
|
||||||
before_install:
|
before_install:
|
||||||
- sudo dpkg --add-architecture i386
|
- sudo dpkg --add-architecture i386
|
||||||
- sudo apt-get update >/dev/null
|
- sudo apt-get update >/dev/null
|
||||||
|
@ -13,22 +14,23 @@ services:
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
cache:
|
before_script:
|
||||||
- apt: true
|
|
||||||
script:
|
|
||||||
- cd $TRAVIS_BUILD_DIR/pupy && rm -f payload_templates/*
|
- cd $TRAVIS_BUILD_DIR/pupy && rm -f payload_templates/*
|
||||||
|
- 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/android.tgz ]; then tar -C $HOME -zxf $HOME/.cache/android.tgz; fi
|
||||||
|
script:
|
||||||
- cd $TRAVIS_BUILD_DIR/client/android_sources && ./build.sh
|
- cd $TRAVIS_BUILD_DIR/client/android_sources && ./build.sh
|
||||||
- cd $TRAVIS_BUILD_DIR/client/sources && ./buildenv.sh && ./build.sh
|
- cd $TRAVIS_BUILD_DIR/client/sources && ./buildenv.sh && ./build.sh
|
||||||
- cd $TRAVIS_BUILD_DIR/client/sources-linux && sudo -E ./buildenv.sh && sudo -E ./build.sh
|
- cd $TRAVIS_BUILD_DIR/client/sources-linux && sudo -E ./buildenv.sh && sudo -E ./build.sh
|
||||||
- rm -rf $TRAVIS_BUILD_DIR/client/sources/buildenv/win32/drive_c/users
|
before_cache:
|
||||||
- rm -rf $TRAVIS_BUILD_DIR/client/sources/buildenv/win64/drive_c/users
|
- tar -C $TRAVIS_BUILD_DIR/client/sources -zcf $HOME/.cache/win.tgz buildenv
|
||||||
- rm -rf $TRAVIS_BUILD_DIR/client/sources/buildenv/win32/dosdevices
|
- sudo -E tar -C $TRAVIS_BUILD_DIR/client/sources-linux -zcf $HOME/.cache/lin.tgz buildenv
|
||||||
- rm -rf $TRAVIS_BUILD_DIR/client/sources/buildenv/win64/dosdevices
|
- tar -C $HOME -zcf .buildozer
|
||||||
cache:
|
cache:
|
||||||
|
apt: true
|
||||||
directories:
|
directories:
|
||||||
- $TRAVIS_BUILD_DIR/client/sources/buildenv
|
- $HOME/.cache
|
||||||
- $TRAVIS_BUILD_DIR/client/sources-linux/buildenv
|
|
||||||
- $HOME/.buildozer/platform/android
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue