mirror of
https://github.com/chipsalliance/f4pga-examples.git
synced 2025-01-03 03:43:38 -05:00
fd2614e193
Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
62 lines
3.1 KiB
YAML
62 lines
3.1 KiB
YAML
os: linux
|
|
dist: focal
|
|
language: minimal
|
|
|
|
services:
|
|
- docker
|
|
|
|
env:
|
|
# Testing QuickLogic toolchain on all OSes
|
|
- TOOLCHAIN=quicklogic OS=ubuntu OS_VERSION=trusty
|
|
- TOOLCHAIN=quicklogic OS=ubuntu OS_VERSION=xenial
|
|
- TOOLCHAIN=quicklogic OS=ubuntu OS_VERSION=bionic
|
|
- TOOLCHAIN=quicklogic OS=ubuntu OS_VERSION=eoan
|
|
- TOOLCHAIN=quicklogic OS=ubuntu OS_VERSION=focal
|
|
- TOOLCHAIN=quicklogic OS=centos OS_VERSION=6
|
|
- TOOLCHAIN=quicklogic OS=centos OS_VERSION=7
|
|
- TOOLCHAIN=quicklogic OS=centos OS_VERSION=8
|
|
# Testing Xilinx 7 Series toolchain on all OSes
|
|
- TOOLCHAIN=xilinx-series-7 OS=ubuntu OS_VERSION=trusty
|
|
- TOOLCHAIN=xilinx-series-7 OS=ubuntu OS_VERSION=xenial
|
|
- TOOLCHAIN=xilinx-series-7 OS=ubuntu OS_VERSION=bionic
|
|
- TOOLCHAIN=xilinx-series-7 OS=ubuntu OS_VERSION=eoan
|
|
- TOOLCHAIN=xilinx-series-7 OS=ubuntu OS_VERSION=focal
|
|
- TOOLCHAIN=xilinx-series-7 OS=centos OS_VERSION=6
|
|
- TOOLCHAIN=xilinx-series-7 OS=centos OS_VERSION=7
|
|
- TOOLCHAIN=xilinx-series-7 OS=centos OS_VERSION=8
|
|
|
|
before_install:
|
|
- sudo locale-gen "en_US.UTF-8"
|
|
- export LANG="en_US.UTF-8"
|
|
- source .github/travis/common.sh
|
|
- rm README.rst && make README.rst && .github/travis/git-check.sh
|
|
- pip install git+https://github.com/antmicro/tuttest@prefix-lines-with#egg=tuttest
|
|
|
|
install:
|
|
- if [ "$OS" = "ubuntu" ]; then export INSTALL_COMMAND="apt update && apt install -y"; fi
|
|
- if [ "$OS" = "centos" ]; then export INSTALL_COMMAND="yum -y install"; fi
|
|
- if [ "$OS" = "ubuntu" ]; then export INSTALL_PACKAGES="wget"; fi
|
|
- if [ "$OS" = "centos" ]; then export INSTALL_PACKAGES="wget"; fi
|
|
- if [ "$OS" = "centos" ] && [ "$OS_VERSION" = "6" ]; then export INSTALL_PACKAGES="$INSTALL_PACKAGES util-linux-ng"; fi # Install missing `getopt` binary in centos 6
|
|
- export DOCKER_NAME=test
|
|
- export IN_DOCKER_EXEC="docker exec -t $DOCKER_NAME bash -c"
|
|
- docker create
|
|
--name $DOCKER_NAME
|
|
--env LANG="en_US.UTF-8"
|
|
--env LANGUAGE="en_US"
|
|
--env DEBIAN_FRONTEND="noninteractive"
|
|
-v /home/travis:/home/travis
|
|
--workdir $PWD
|
|
--tty
|
|
$OS:$OS_VERSION
|
|
- docker start $DOCKER_NAME
|
|
- $IN_DOCKER_EXEC "$INSTALL_COMMAND $INSTALL_PACKAGES"
|
|
- if [ "$OS_VERSION" = "6" ] || [ "$OS_VERSION" = "trusty" ]; then $IN_DOCKER_EXEC "echo 'readlink -f \$@' | tee -a /usr/bin/realpath;chmod +x /usr/bin/realpath"; fi # Replace missing `realpath` binary with readlink -f
|
|
- tuttest README.rst unnamed0 --prefix-lines-with "$IN_DOCKER_EXEC" | bash -
|
|
- if [ "$TOOLCHAIN" = "xilinx-series-7" ]; then tuttest xc7/README.rst unnamed0 --prefix-lines-with "$IN_DOCKER_EXEC" | bash -; fi
|
|
- if [ "$TOOLCHAIN" = "quicklogic" ]; then tuttest eos-s3/README.rst unnamed0 --prefix-lines-with "$IN_DOCKER_EXEC" | bash -; fi
|
|
|
|
script:
|
|
- if [ "$TOOLCHAIN" = "xilinx-series-7" ]; then tuttest xc7/README.rst unnamed1,unnamed2,unnamed3,unnamed4,unnamed5 --prefix-lines-with "$IN_DOCKER_EXEC" | bash -; fi
|
|
- if [ "$TOOLCHAIN" = "quicklogic" ]; then tuttest eos-s3/README.rst unnamed1,unnamed2 --prefix-lines-with "$IN_DOCKER_EXEC" | bash -; fi
|
|
|