2017-06-28 20:57:58 +07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-01-27 21:54:29 +07:00
|
|
|
export PATH=./scripts:$PATH
|
|
|
|
|
2017-06-28 20:57:58 +07:00
|
|
|
docker --version
|
|
|
|
docker-compose --version
|
2018-08-10 03:24:02 +07:00
|
|
|
echo "node `node -v`"
|
|
|
|
echo "npm `npm -v`"
|
2017-06-28 20:57:58 +07:00
|
|
|
|
|
|
|
# Run unit tests
|
2019-02-22 16:27:54 +07:00
|
|
|
authelia-scripts unittest
|
|
|
|
|
2019-01-27 21:54:29 +07:00
|
|
|
# Build
|
|
|
|
authelia-scripts build
|
2017-06-28 20:57:58 +07:00
|
|
|
|
2019-02-24 05:27:34 +07:00
|
|
|
# Run integration tests
|
|
|
|
authelia-scripts test --headless test/suites/**/*.ts
|
|
|
|
|
2017-06-28 20:57:58 +07:00
|
|
|
# Test npm deployment before actual deployment
|
2019-02-12 05:23:40 +07:00
|
|
|
# ./scripts/npm-deployment-test.sh
|