Skip to content

Commit

Permalink
Create test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HerculesNode authored Mar 8, 2024
1 parent 8d7eb36 commit 2f3838e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

if ! errmsg=$(nvm); then . ~/.nvm/nvm.sh; fi

echo "Building with webpack."
if ! errmsg=$(nvm exec 16 npm run build 1>&2); then exit 1; fi

echo "Testing on node"
if ! errmsg=$(nvm exec $TRAVIS_NODE_VERSION node tests 1>&2); then exit 1; fi

exit 0

0 comments on commit 2f3838e

Please sign in to comment.