fixed docker tox

This commit is contained in:
Christian Vogelgsang 2022-01-03 11:39:49 +01:00
parent 4eeef26b98
commit 17f44ce9fa
4 changed files with 35 additions and 8 deletions

View File

@ -1 +1,27 @@
FROM themattrix/tox
FROM debian:11
RUN apt-get update && apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev curl git
RUN useradd -m python
USER python
WORKDIR /home/python
RUN git clone git://github.com/pyenv/pyenv.git .pyenv
ENV HOME /home/python
ENV PYENV_ROOT $HOME/.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
# setup python
RUN for a in 3.6.15 3.7.12 3.8.12 3.9.9 3.10.1 ; do pyenv install $a ; done
# first one is used
RUN pyenv global 3.10.1 3.6.15 3.7.12 3.8.12 3.9.9 && pyenv rehash
# install tox
RUN pip install tox wheel
WORKDIR /src
ENTRYPOINT [ "tox" ]

View File

@ -2,9 +2,10 @@ include MANIFEST.in
include README.md
include CHANGELOG.md
include Makefile
include musashi/softfloat/softfloat-macros
include musashi/softfloat/softfloat-specialize
include machine/musashi/softfloat/softfloat-macros
include machine/musashi/softfloat/softfloat-specialize
include machine/musashi/*.txt
recursive-include amitools/data *
recursive-include amitools/fs/block/bootcode *
recursive-include musashi *.pyx *.c *.h readme.txt history.txt
recursive-include machine *.pyx *.c *.h
recursive-include gen *.c *.h

View File

@ -1,2 +1,2 @@
#!/bin/sh
exec docker run -it --rm -v $PWD:/src:ro amitools-tox tox "$@"
exec docker run -it --rm -v $PWD:/src amitools-tox "$@"

View File

@ -1,11 +1,11 @@
[tox]
envlist = py{36,37,38,39}
envlist = py{36,37,38,39,310}
skipsdist = {env:TOXBUILD:false}
[travis]
os =
linux: py{36,37,38,39}
osx: py{36,37,38,39}
linux: py{36,37,38,39,310}
osx: py{36,37,38,39,310}
[testenv]
deps= -rrequirements-test.txt