2017-06-28 13:57:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
docker --version
|
|
|
|
docker-compose --version
|
|
|
|
|
|
|
|
# Run unit tests
|
|
|
|
grunt test
|
|
|
|
|
|
|
|
# Build the app from Typescript and package
|
|
|
|
grunt build-dist
|
|
|
|
|
2017-09-05 20:31:12 +00:00
|
|
|
echo "The files are:"
|
|
|
|
ls
|
|
|
|
|
|
|
|
echo "--- Packing npm package into a tarball"
|
|
|
|
npm pack
|
|
|
|
|
2017-07-14 17:05:42 +00:00
|
|
|
# Run integration/example tests
|
|
|
|
./scripts/integration-tests.sh
|
2017-06-28 13:57:58 +00:00
|
|
|
|
|
|
|
# Test npm deployment before actual deployment
|
|
|
|
./scripts/npm-deployment-test.sh
|