forked from inveniosoftware/cookiecutter-invenio-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-tests.sh
executable file
·44 lines (32 loc) · 852 Bytes
/
run-tests.sh
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
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
#
# Copyright (C) 2023 CERN.
#
# Cookiecutter - Invenio Module Template 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)
function finish {
echo "Cleaning up."
pip uninstall -y generated_fun
rm -rf "${WORKDIR}"
}
trap finish EXIT
sphinx-build -qnN docs docs/_build/html
cookiecutter --no-input -o "$WORKDIR" . project_name=Generated-Fun
cd "${WORKDIR}/generated-fun"
git init
git add -A
pip install -e .\[all\] --quiet
mkdir generated_fun/translations
python setup.py extract_messages
python setup.py init_catalog -l en
python setup.py compile_catalog
git add -A
check-manifest -u || true
./run-tests.sh