2020-04-20 11:15:28 -04:00
|
|
|
os: linux
|
2020-06-09 16:59:46 -04:00
|
|
|
dist: focal
|
2020-07-11 18:14:50 -04:00
|
|
|
language: minimal
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2020-04-22 07:00:30 -04:00
|
|
|
env:
|
2020-07-11 18:14:50 -04:00
|
|
|
# Testing QuickLogic toolchain on all OSes
|
2020-09-28 09:59:30 -04:00
|
|
|
- TOOLCHAIN=eos-s3 OS=ubuntu OS_VERSION=xenial
|
|
|
|
- TOOLCHAIN=eos-s3 OS=ubuntu OS_VERSION=bionic
|
|
|
|
- TOOLCHAIN=eos-s3 OS=ubuntu OS_VERSION=eoan
|
|
|
|
- TOOLCHAIN=eos-s3 OS=ubuntu OS_VERSION=focal
|
|
|
|
- TOOLCHAIN=eos-s3 OS=centos OS_VERSION=7
|
|
|
|
- TOOLCHAIN=eos-s3 OS=centos OS_VERSION=8
|
2020-07-11 18:14:50 -04:00
|
|
|
# Testing Xilinx 7 Series toolchain on all OSes
|
2020-09-28 09:59:30 -04:00
|
|
|
- TOOLCHAIN=xc7 OS=ubuntu OS_VERSION=xenial
|
|
|
|
- TOOLCHAIN=xc7 OS=ubuntu OS_VERSION=bionic
|
|
|
|
- TOOLCHAIN=xc7 OS=ubuntu OS_VERSION=eoan
|
|
|
|
- TOOLCHAIN=xc7 OS=ubuntu OS_VERSION=focal
|
|
|
|
- TOOLCHAIN=xc7 OS=centos OS_VERSION=7
|
|
|
|
- TOOLCHAIN=xc7 OS=centos OS_VERSION=8
|
2020-07-11 18:14:50 -04:00
|
|
|
|
2020-09-17 06:58:45 -04:00
|
|
|
before_install:
|
2020-09-28 09:59:30 -04:00
|
|
|
- sudo locale-gen "en_US.UTF-8"
|
|
|
|
- export LANG="en_US.UTF-8"
|
|
|
|
- source .github/travis/common.sh
|
|
|
|
# Get tuttest and setup a docker container to run the test in.
|
|
|
|
- pip install git+https://github.com/antmicro/tuttest#egg=tuttest
|
2020-09-03 02:28:58 -04:00
|
|
|
- export DOCKER_NAME=test
|
2020-11-22 13:00:49 -05:00
|
|
|
- export IN_DOCKER_EXEC="docker exec -t $DOCKER_NAME bash -ex -c"
|
2020-07-11 18:14:50 -04:00
|
|
|
- docker create
|
2020-09-28 09:59:30 -04:00
|
|
|
--name $DOCKER_NAME
|
|
|
|
--env LANG="en_US.UTF-8"
|
|
|
|
--env LANGUAGE="en_US"
|
|
|
|
--env DEBIAN_FRONTEND="noninteractive"
|
|
|
|
--env INSTALL_DIR=~/opt/symbiflow/
|
|
|
|
-v /home/travis:/home/travis
|
|
|
|
--workdir $PWD
|
|
|
|
--tty
|
|
|
|
$OS:$OS_VERSION
|
2020-09-03 02:28:58 -04:00
|
|
|
- docker start $DOCKER_NAME
|
2020-09-28 09:59:30 -04:00
|
|
|
|
|
|
|
install:
|
|
|
|
# Check the top level README file is up to date.
|
|
|
|
- rm README.rst && make README.rst && .github/travis/git-check.sh
|
|
|
|
# Install the toolchain into the docker container.
|
2020-11-22 13:00:49 -05:00
|
|
|
- tuttest README.rst install-wget-${OS} | ${IN_DOCKER_EXEC} "$(cat /dev/stdin)"
|
|
|
|
- tuttest README.rst wget-conda | ${IN_DOCKER_EXEC} "$(cat /dev/stdin)"
|
|
|
|
- tuttest ${TOOLCHAIN}/README.rst ${TOOLCHAIN}-setup-toolchain | ${IN_DOCKER_EXEC} "$(cat /dev/stdin)"
|
2020-07-11 18:14:50 -04:00
|
|
|
|
|
|
|
script:
|
2020-09-28 09:59:30 -04:00
|
|
|
# Run the tests inside the docker container.
|
|
|
|
- if [ "$TOOLCHAIN" = "xc7" ]; then EXTRA_TESTS=,xc7-picosoc,xc7-litex,xc7-linux; fi
|
2020-11-22 13:00:49 -05:00
|
|
|
- tuttest ${TOOLCHAIN}/README.rst ${TOOLCHAIN}-prepare-env,${TOOLCHAIN}-counter${EXTRA_TESTS} | ${IN_DOCKER_EXEC} "$(cat /dev/stdin)"
|