mirror of
https://github.com/chipsalliance/f4pga-examples.git
synced 2025-01-03 03:43:38 -05:00
045dc79d4f
This commit is workaround for Github not rendering `.. include::`. This PR adds: - Adds Makefile for creating conda environment under `env/conda` and installs `rst_include` tool. - Adds make README.rst target to generate `README.rst` from `README.src.rst` - Has Travis CI run on repository and check that the `README.rst` file has been rebuilt and committed if any of the dependencies have change. Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
27 lines
613 B
Bash
Executable file
27 lines
613 B
Bash
Executable file
set -e
|
|
|
|
source .github/travis/common.sh
|
|
|
|
# Output any changes in the repository
|
|
# ------------------------------------------------------------------------
|
|
start_section git-status "Current git status"
|
|
|
|
git diff
|
|
|
|
$SPACER
|
|
|
|
git status
|
|
|
|
end_section git-status
|
|
|
|
# Check there are not changes in the repository
|
|
# ------------------------------------------------------------------------
|
|
start_section git-check "Checking git repository isn't dirty"
|
|
|
|
(
|
|
. "$(git --exec-path)/git-sh-setup"
|
|
|
|
require_clean_work_tree "continue" "Please run ``make README.rst`` to generate correct ``README.rst``."
|
|
)
|
|
|
|
end_section git-check
|