forked from inveniosoftware/cookiecutter-invenio-instance
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-tests.sh
More file actions
executable file
·46 lines (33 loc) · 893 Bytes
/
run-tests.sh
File metadata and controls
executable file
·46 lines (33 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
# quit on errors:
set -o errexit
# quit on unbound symbols:
set -o nounset
WORKDIR=$(mktemp -d)
finish (){
echo "Cleaning up."
docker-compose down
pipenv --rm || true
rm -rf "${WORKDIR}"
}
trap finish EXIT
sphinx-build -qnN docs docs/_build/html
cookiecutter --no-input -o "$WORKDIR" . \
project_name=Generated-Fun \
database=${COOKIECUTTER_DATABASE:-postgresql} \
elasticsearch=${COOKIECUTTER_ELASTICSEARCH:-elasticsearch6}
cd "${WORKDIR}/generated-fun"
docker-compose up -d
git init
git add -A
./scripts/bootstrap
pipenv run check-manifest -u || true
./docker/wait-for-services.sh
./run-tests.sh