Fix deploy

- Also deploy when we have DESKTOP_ONLY (because docker image doesn't
deploy anymore)
- Correctly get the list of git directory to push.
This commit is contained in:
Matthieu Gautier
2019-05-30 18:12:53 +02:00
parent b90f32e9bf
commit 629fccb327
2 changed files with 3 additions and 3 deletions

View File

@ -94,13 +94,13 @@ deploy:
script: travis/deploy.sh script: travis/deploy.sh
on: on:
tags: true tags: true
condition: $TRAVIS_BUILD_STAGE_NAME != "Build_docker_images" && ($TRAVIS_OS_NAME != "linux" || $DESKTOP_ONLY != 1) condition: $TRAVIS_BUILD_STAGE_NAME != "Build_docker_images"
- provider: script - provider: script
skip_cleanup: true skip_cleanup: true
script: travis/deploy.sh script: travis/deploy.sh
on: on:
branch: master branch: master
condition: $TRAVIS_BUILD_STAGE_NAME != "Build_docker_images" && $TRAVIS_EVENT_TYPE = cron && ( $TRAVIS_OS_NAME != "linux" || $DESKTOP_ONLY != 1 ) condition: $TRAVIS_BUILD_STAGE_NAME != "Build_docker_images" && $TRAVIS_EVENT_TYPE = cron
env: env:
global: global:
- NIGHTLY_DATE=$(date +%Y-%m-%d) - NIGHTLY_DATE=$(date +%Y-%m-%d)

View File

@ -70,7 +70,7 @@ then
fi fi
cd ${EXPORT_DIR}/GIT cd ${EXPORT_DIR}/GIT
GIT_REPOS=$(ls -d */) GIT_REPOS=$(ls -l | awk '/^d/ { print $9 }')
if [[ "x$GIT_REPOS" != "x" ]] if [[ "x$GIT_REPOS" != "x" ]]
then then
for repo in $GIT_REPOS for repo in $GIT_REPOS