From e16f41b94720a64b265bdb4dbab2a6b6c4e7614a Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Fri, 21 Feb 2020 17:44:40 +0530 Subject: [PATCH] ci: fix travis bash conditions --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index fe893af2..989bfdf0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,16 +6,16 @@ services: - docker before_install: - - if [ $BUILD != "development"]; then + - if [[ "$BUILD" -ne "development" ]]; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin sudo apt-get update && sudo apt-get -y install git fi - - if [ $BUILD == "development" ];then + - if [[ $BUILD == "development" ]];then sudo apt-get update && sudo apt-get -y install docker-compose; fi install: - - if [ $BUILD == "development" ];then + - if [[ $BUILD == "development" ]];then chmod ugo+x ./dbench; chmod ugo+x ./test.sh; ./dbench setup docker;