From d54f8d4704702c624f148e4a44d1827658228478 Mon Sep 17 00:00:00 2001 From: Tom Gallacher Date: Fri, 6 Jan 2017 14:47:36 +0000 Subject: [PATCH] Hopefully fix builds --- bin/on-changes | 8 -------- bin/on-changes-publish-ui | 8 ++++++++ circle.yml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) delete mode 100755 bin/on-changes create mode 100755 bin/on-changes-publish-ui diff --git a/bin/on-changes b/bin/on-changes deleted file mode 100755 index f93c82d3..00000000 --- a/bin/on-changes +++ /dev/null @@ -1,8 +0,0 @@ -#! /usr/bin/env bash - -# -# Prelude -# -set -euo pipefail - -[[ $(git diff --name-only) == *"$1"* ]] diff --git a/bin/on-changes-publish-ui b/bin/on-changes-publish-ui new file mode 100755 index 00000000..02b287f9 --- /dev/null +++ b/bin/on-changes-publish-ui @@ -0,0 +1,8 @@ +#! /usr/bin/env bash + +# +# Prelude +# +set -euo pipefail + +[[ $(git diff --name-only) == *"ui/"* ]] && make -C ui publish | sed '/NPM_TOKEN/d' diff --git a/circle.yml b/circle.yml index e2b026d6..d902f72f 100644 --- a/circle.yml +++ b/circle.yml @@ -32,7 +32,7 @@ deployment: branch: master commands: - ./bin/docker-login - - ./bin/on-changes ui && make -C ui publish | sed '/NPM_TOKEN/d' + - ./bin/on-changes-publish-ui - make -j2 build | sed '/NPM_TOKEN/d' - make -j2 push | sed '/NPM_TOKEN/d' - ./bin/deploy