From bf32a9b8c5afad313612c2a59ce25ca4cf774fcc Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Wed, 7 Aug 2019 21:07:58 +0800 Subject: [PATCH] [CI] Leverage `after_success` phase in .travis.yml There were two `ls -l dnscrypt-proxy-*.tar.gz dnscrypt-proxy-*.zip` commands in `.travis.yml`, one in the `script`(build) phase, one in the `after_deploy` phase, they were actually duplicated. As deployment job won't create any new files, and the command isn't part of the steps to build artifacts, but to confirm/list the built files, this action looks more suitable to be placed in the `after_success`, to be separated with the build commands, and the duplicated one in the `after_deploy` phase could be removed. --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 052daa91..561966e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -191,6 +191,7 @@ script: - cp ../LICENSE example-dnscrypt-proxy.toml example-*.txt android-x86_64/ - zip -9 -r dnscrypt-proxy-android_x86_64-${TRAVIS_TAG:-dev}.zip android-x86_64 +after_success: - ls -l dnscrypt-proxy-*.tar.gz dnscrypt-proxy-*.zip deploy: @@ -225,9 +226,6 @@ before_deploy: - echo "$MINISIGN_SK" >> /tmp/minisign.key - echo | minisign -s /tmp/minisign.key -Sm dnscrypt-proxy-*.tar.gz dnscrypt-proxy-*.zip -after_deploy: -- ls -l dnscrypt-proxy-*.tar.gz dnscrypt-proxy-*.zip - before_install: - NDK_VER=r18 - curl -LO http://dl.google.com/android/repository/android-ndk-${NDK_VER}-linux-x86_64.zip