From 89d7061aaa063a5a6e0af781910ef36b845718c6 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Mon, 3 Jul 2017 10:20:21 +0300 Subject: [PATCH] Split build steps --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 127d1e28..a308dca9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,13 +16,15 @@ os: dist: trusty before_script: - 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/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/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 && ./buildenv.sh + - cd $TRAVIS_BUILD_DIR/client/sources && ./build.sh + - cd $TRAVIS_BUILD_DIR/client/sources-linux && sudo -E ./buildenv.sh + - cd $TRAVIS_BUILD_DIR/client/sources-linux && sudo -E ./build.sh before_cache: - tar -C $TRAVIS_BUILD_DIR/client/sources -zcf $HOME/.cache/win.tgz buildenv - sudo -E tar -C $TRAVIS_BUILD_DIR/client/sources-linux -zcf $HOME/.cache/lin.tgz buildenv