-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize CI scripts, fix CI deploy script
* ensure deploy.sh works * Further refinements to CI setup * Fix file permissions * Move cloudformation folder * test * Rejigger upload paths * Undo path changes * Fix bug in deploy script * Simplify deploy scripts * Re-enable tests * Fix script error
- Loading branch information
Showing
5 changed files
with
59 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# disable spotlight to ensure we waste no CPU on needless file indexing | ||
sudo mdutil -i off /; | ||
|
||
if [[ ! -d ./nvm ]]; then | ||
git clone --depth 1 https://github.com/creationix/nvm.git ./nvm | ||
fi | ||
|
||
source ./nvm/nvm.sh && nvm install ${NODE_VERSION} | ||
|
||
if [ "$CIRCLE_BRANCH" == "master" ]; then | ||
source ./nvm/nvm.sh && nvm use ${NODE_VERSION} && npm update | ||
else | ||
source ./nvm/nvm.sh && nvm use ${NODE_VERSION} && npm install | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
source ./nvm/nvm.sh | ||
nvm use ${NODE_VERSION} | ||
|
||
set -eu | ||
set -o pipefail | ||
|
||
# add npm packages to $PATH | ||
PATH=$(pwd)/node_modules/.bin:$PATH | ||
|
||
# set up code coverage instrumentation | ||
rm -rf coverage .nyc_output | ||
|
||
# run linters | ||
npm run lint | ||
|
||
# build and run build tests | ||
npm run build-min | ||
npm run build-dev | ||
|
||
# run unit tests | ||
tap --reporter dot --coverage --no-coverage-report test/js/*/*.js test/build/webpack.test.js | ||
|
||
# run render tests | ||
istanbul cover --dir .nyc_output --include-pid --report none --print none test/render.test.js && | ||
istanbul cover --dir .nyc_output --include-pid --report none --print none test/query.test.js | ||
|
||
# send coverage report to coveralls | ||
nyc report --reporter=lcov | ||
(node ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info) || true | ||
|
||
exit $EXIT_CODE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters