authelia/scripts/authelia-scripts-travis

42 lines
969 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
source bootstrap.sh
docker --version
docker-compose --version
2018-08-09 20:24:02 +00:00
echo "node `node -v`"
echo "npm `npm -v`"
authelia-scripts bootstrap
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
# Build
echo "===> Build stage"
authelia-scripts build
# Run unit tests
echo "===> Unit tests stage"
2019-03-22 14:02:15 +00:00
authelia-scripts unittest --forbid-only
# Build the docker image
echo "===> Docker image build stage"
authelia-scripts docker build
# Run integration tests
echo "===> e2e stage"
2019-03-22 14:02:15 +00:00
authelia-scripts suites test --headless --forbid-only
# Test npm deployment before actual deployment
# ./scripts/npm-deployment-test.sh