Update to use named snippets

Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
This commit is contained in:
Kamil Rakoczy 2020-09-28 09:02:13 +02:00
parent 4e1dad1086
commit 3ffea1492c
4 changed files with 15 additions and 10 deletions

View File

@ -30,7 +30,7 @@ before_install:
- export LANG="en_US.UTF-8" - export LANG="en_US.UTF-8"
- source .github/travis/common.sh - source .github/travis/common.sh
- rm README.rst && make README.rst && .github/travis/git-check.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 - pip install git+https://github.com/antmicro/tuttest#egg=tuttest
install: install:
- export DOCKER_NAME=test - export DOCKER_NAME=test
@ -40,18 +40,19 @@ install:
--env LANG="en_US.UTF-8" --env LANG="en_US.UTF-8"
--env LANGUAGE="en_US" --env LANGUAGE="en_US"
--env DEBIAN_FRONTEND="noninteractive" --env DEBIAN_FRONTEND="noninteractive"
--env INSTALL_DIR=~/opt/symbiflow/
-v /home/travis:/home/travis -v /home/travis:/home/travis
--workdir $PWD --workdir $PWD
--tty --tty
$OS:$OS_VERSION $OS:$OS_VERSION
- docker start $DOCKER_NAME - docker start $DOCKER_NAME
- if [ "$OS" = "ubuntu" ]; then tuttest README.rst unnamed0 --prefix-lines-with "$IN_DOCKER_EXEC" | bash -; fi - if [ "$OS" = "ubuntu" ]; then tuttest README.rst install-wget-ubuntu --prefix-lines-with "$IN_DOCKER_EXEC" | bash -ex -; fi
- if [ "$OS" = "centos" ]; then tuttest README.rst unnamed1 --prefix-lines-with "$IN_DOCKER_EXEC" | bash -; fi - if [ "$OS" = "centos" ]; then tuttest README.rst install-wget-centos --prefix-lines-with "$IN_DOCKER_EXEC" | bash -ex -; fi
- tuttest README.rst unnamed2 --prefix-lines-with "$IN_DOCKER_EXEC" | bash - - tuttest README.rst wget-conda --prefix-lines-with "$IN_DOCKER_EXEC" | bash -ex -
- if [ "$TOOLCHAIN" = "xilinx-series-7" ]; then tuttest xc7/README.rst unnamed0 --prefix-lines-with "$IN_DOCKER_EXEC" | bash -; fi - if [ "$TOOLCHAIN" = "xilinx-series-7" ]; then tuttest xc7/README.rst xc7-setup-toolchain --prefix-lines-with "$IN_DOCKER_EXEC" | bash -ex -; fi
- if [ "$TOOLCHAIN" = "quicklogic" ]; then tuttest eos-s3/README.rst unnamed0 --prefix-lines-with "$IN_DOCKER_EXEC" | bash -; fi - if [ "$TOOLCHAIN" = "quicklogic" ]; then tuttest eos-s3/README.rst eoss3-setup-toolchain --prefix-lines-with "$IN_DOCKER_EXEC" | bash -ex -; fi
script: 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" = "xilinx-series-7" ]; then tuttest xc7/README.rst xc7-prepare-env,xc7-counter,xc7-picosoc,xc7-litex,xc7-linux --prefix-lines-with "$IN_DOCKER_EXEC" --single-command | bash -ex -; fi
- if [ "$TOOLCHAIN" = "quicklogic" ]; then tuttest eos-s3/README.rst unnamed1,unnamed2 --prefix-lines-with "$IN_DOCKER_EXEC" | bash -; fi - if [ "$TOOLCHAIN" = "quicklogic" ]; then tuttest eos-s3/README.rst eoss3-prepare-env,eoss3-counter --prefix-lines-with "$IN_DOCKER_EXEC" --single-command | bash -ex -; fi

View File

@ -40,12 +40,14 @@ The only required prerequisite is ``wget``. You can install it using:
* For Ubuntu: * For Ubuntu:
.. code:: bash .. code:: bash
:name: install-wget-ubuntu
apt update && apt install -y wget apt update && apt install -y wget
* For CentOS: * For CentOS:
.. code:: bash .. code:: bash
:name: install-wget-centos
yum install -y wget yum install -y wget
@ -99,7 +101,7 @@ and so you will need to add some ``sudo`` commands to the instructions below.
source "$INSTALL_DIR/eos-s3/conda/etc/profile.d/conda.sh" source "$INSTALL_DIR/eos-s3/conda/etc/profile.d/conda.sh"
conda env create -f eos-s3/environment.yml conda env create -f eos-s3/environment.yml
conda activate eos-s3 conda activate eos-s3
wget -qO- https://quicklogic-my.sharepoint.com/:u:/p/kkumar/EWuqtXJmalROpI2L5XeewMIBRYVCY8H4yc10nlli-Xq79g?download=1 | tar -xJ -C $INSTALL_DIR wget -qO- https://quicklogic-my.sharepoint.com/:u:/p/kkumar/EWuqtXJmalROpI2L5XeewMIBRYVCY8H4yc10nlli-Xq79g?download=1 | tar -xJ -C $INSTALL_DIR/eos-s3/
conda deactivate conda deactivate
Build Example Designs Build Example Designs

View File

@ -40,12 +40,14 @@ The only required prerequisite is ``wget``. You can install it using:
* For Ubuntu: * For Ubuntu:
.. code:: bash .. code:: bash
:name: install-wget-ubuntu
apt update && apt install -y wget apt update && apt install -y wget
* For CentOS: * For CentOS:
.. code:: bash .. code:: bash
:name: install-wget-centos
yum install -y wget yum install -y wget

View File

@ -33,7 +33,7 @@ Choose the installation directory (see the `README <../README.rst>`_ one level u
source "$INSTALL_DIR/eos-s3/conda/etc/profile.d/conda.sh" source "$INSTALL_DIR/eos-s3/conda/etc/profile.d/conda.sh"
conda env create -f eos-s3/environment.yml conda env create -f eos-s3/environment.yml
conda activate eos-s3 conda activate eos-s3
wget -qO- https://quicklogic-my.sharepoint.com/:u:/p/kkumar/EWuqtXJmalROpI2L5XeewMIBRYVCY8H4yc10nlli-Xq79g?download=1 | tar -xJ -C $INSTALL_DIR wget -qO- https://quicklogic-my.sharepoint.com/:u:/p/kkumar/EWuqtXJmalROpI2L5XeewMIBRYVCY8H4yc10nlli-Xq79g?download=1 | tar -xJ -C $INSTALL_DIR/eos-s3/
conda deactivate conda deactivate
.. toolchain_include_end_label .. toolchain_include_end_label