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>
30 lines
802 B
Bash
30 lines
802 B
Bash
# Some colors, use it like following;
|
|
# echo -e "Hello ${YELLOW}yellow${NC}"
|
|
GRAY=' \033[0;30m'
|
|
RED=' \033[0;31m'
|
|
GREEN=' \033[0;32m'
|
|
YELLOW=' \033[0;33m'
|
|
PURPLE=' \033[0;35m'
|
|
NC='\033[0m' # No Color
|
|
|
|
SPACER="echo -e ${GRAY} - ${NC}"
|
|
|
|
export -f travis_nanoseconds
|
|
export -f travis_fold
|
|
export -f travis_time_start
|
|
export -f travis_time_finish
|
|
export -f travis_wait
|
|
export -f travis_jigger
|
|
|
|
function start_section() {
|
|
travis_fold start "$1"
|
|
travis_time_start
|
|
echo -e "${PURPLE}${1}${NC}: $2${NC}"
|
|
echo -e "${GRAY}-------------------------------------------------------------------${NC}"
|
|
}
|
|
|
|
function end_section() {
|
|
echo -e "${GRAY}-------------------------------------------------------------------${NC}"
|
|
travis_time_finish
|
|
travis_fold end "$1"
|
|
}
|