From 7ad2a3a11b3e90acdc3a8ec674532478bece6d11 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Mon, 21 May 2018 20:05:59 +0700 Subject: [PATCH] Diff lock file --- .travis.yml | 1 + sh/ci/after-script.sh | 4 ++++ sh/ci/before-install.sh | 1 + 3 files changed, 6 insertions(+) create mode 100644 sh/ci/before-install.sh diff --git a/.travis.yml b/.travis.yml index ddd2e1a6..05443259 100755 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ cache: before_install: - curl -L https://unpkg.com/@pnpm/self-installer | node - pnpm --version + - bash sh/ci/before-install.sh install: - pnpm recursive link --shamefully-flatten diff --git a/sh/ci/after-script.sh b/sh/ci/after-script.sh index a890cdf0..fe344ff7 100644 --- a/sh/ci/after-script.sh +++ b/sh/ci/after-script.sh @@ -9,4 +9,8 @@ echo ' → To Codecov ' codecov ((stcode|=$?)) +echo 'Diffing lock file...' +echo ' → shrinkwrap.yaml ≏ shrinkwrap.yaml.old.tmp' +diff --color=always shrinkwrap.yaml shrinkwrap.yaml.old.tmp + exit $stcode diff --git a/sh/ci/before-install.sh b/sh/ci/before-install.sh new file mode 100644 index 00000000..3a7da1cd --- /dev/null +++ b/sh/ci/before-install.sh @@ -0,0 +1 @@ +cp shrinkwrap.yaml shrinkwrap.yaml.old.tmp