#!/usr/env false # # Copyright 2020 SkyWater PDK Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # SPDX-License-Identifier: Apache-2.0 # 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" }