From f5b506165e94ddc1bf4234830ac1445215d665d9 Mon Sep 17 00:00:00 2001 From: Dave Machado Date: Tue, 8 Aug 2017 21:30:47 -0400 Subject: [PATCH] move deploy logic into main script --- .travis.yml | 5 +---- build/main.sh | 6 ++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3407ce5b..d3244546 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,4 @@ before_script: - cd build script: - ./main.sh -after_success: - - ./build.sh - - ./deploy.sh - \ No newline at end of file + diff --git a/build/main.sh b/build/main.sh index b7b11493..5fdd3aee 100755 --- a/build/main.sh +++ b/build/main.sh @@ -25,6 +25,12 @@ if [[ $? != 0 ]]; then exit 1 else echo "format validation passed!" + build.sh && deploy.sh + if [[ $? != 0 ]]; then + echo "JSON build and deploy failed!" + else + echo "JSON build and deploy success!" + fi fi echo "running link validation..."