2017-06-28 13:57:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-03-03 22:51:52 +00:00
|
|
|
source bootstrap.sh
|
2019-01-27 14:54:29 +00:00
|
|
|
|
2017-06-28 13:57:58 +00:00
|
|
|
docker --version
|
|
|
|
docker-compose --version
|
2018-08-09 20:24:02 +00:00
|
|
|
echo "node `node -v`"
|
|
|
|
echo "npm `npm -v`"
|
2017-06-28 13:57:58 +00:00
|
|
|
|
2019-03-03 22:51:52 +00:00
|
|
|
authelia-scripts bootstrap
|
|
|
|
|
2019-03-02 18:05:55 +00:00
|
|
|
docker-compose -f docker-compose.yml \
|
|
|
|
-f example/compose/mongo/docker-compose.yml \
|
|
|
|
-f example/compose/redis/docker-compose.yml \
|
|
|
|
-f example/compose/nginx/portal/docker-compose.yml \
|
|
|
|
-f example/compose/smtp/docker-compose.yml \
|
|
|
|
-f example/compose/httpbin/docker-compose.yml \
|
|
|
|
-f example/compose/ldap/docker-compose.admin.yml \
|
|
|
|
-f example/compose/ldap/docker-compose.yml \
|
|
|
|
pull
|
|
|
|
|
2019-01-27 14:54:29 +00:00
|
|
|
# Build
|
|
|
|
authelia-scripts build
|
2017-06-28 13:57:58 +00:00
|
|
|
|
2019-02-24 09:03:38 +00:00
|
|
|
# Run unit tests
|
|
|
|
authelia-scripts unittest
|
|
|
|
|
2019-03-01 21:52:01 +00:00
|
|
|
# Build the docker image
|
|
|
|
authelia-scripts docker build
|
|
|
|
|
2019-02-23 22:27:34 +00:00
|
|
|
# Run integration tests
|
2019-03-02 15:19:08 +00:00
|
|
|
authelia-scripts suites test --headless
|
2019-02-23 22:27:34 +00:00
|
|
|
|
2017-06-28 13:57:58 +00:00
|
|
|
# Test npm deployment before actual deployment
|
2019-02-11 22:23:40 +00:00
|
|
|
# ./scripts/npm-deployment-test.sh
|