From fcfc25443af7cd818e446ef86072ec50becb316d Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Wed, 2 May 2018 22:11:26 +0200 Subject: [PATCH 1/2] ci: globally install codecov --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index b882400..f05aa09 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,7 @@ cache: before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash - export PATH="$HOME/.yarn/bin:$PATH" + - yarn global add codecov before_script: - git fetch --unshallow From e15749b2e08144e6ec01c68849f2136aba897b63 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Wed, 2 May 2018 22:12:07 +0200 Subject: [PATCH 2/2] refacto(ci): remove ci scripts --- .travis.yml | 14 ++++++++++++-- ci/build-extension.sh | 10 ---------- ci/test-extension.sh | 16 ---------------- 3 files changed, 12 insertions(+), 28 deletions(-) delete mode 100755 ci/build-extension.sh delete mode 100755 ci/test-extension.sh diff --git a/.travis.yml b/.travis.yml index f05aa09..743693d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,8 +20,18 @@ before_script: - yarn script: - - bash ci/build-extension.sh - - bash ci/test-extension.sh + - yarn build + - yarn build-zip + - yarn test && codecov + - test -f dist/manifest.json + - test -f dist/background.js + - test -f dist/vendor.js + - test -f dist/vendor.css + - test -f dist/popup/popup.js + - test -f dist/popup/popup.css + - test -f dist/options/options.js + - test -f dist/options/options.css + - test -f "dist-zip/Solary-v$(node -pe "require('./package.json').version").zip" before_deploy: - export RELEASE_EXTENSION_FILE=$(ls dist-zip/*.zip) diff --git a/ci/build-extension.sh b/ci/build-extension.sh deleted file mode 100755 index c5b7444..0000000 --- a/ci/build-extension.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash -set -e - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cd "$DIR" - -cd .. - -yarn build -yarn build-zip diff --git a/ci/test-extension.sh b/ci/test-extension.sh deleted file mode 100755 index 1fe7dc8..0000000 --- a/ci/test-extension.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash -set -e - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cd "$DIR" - -cd .. - -yarn test && npx codecov - -test -f dist/manifest.json -test -f dist/background.js -test -f dist/popup/popup.js - -EXTENSION_VERSION=$(node -pe "require('./package.json').version") -test -f "dist-zip/Solary-v$EXTENSION_VERSION.zip"