Quick script for running tests against Python 2.6

This commit is contained in:
Brandon Rhodes 2020-07-22 11:47:14 -04:00
parent b4359e28e1
commit 952884657e
2 changed files with 8 additions and 3 deletions

6
bin/test-python-2.6 Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
cd ..
exec ./containers/python-2.6/run bash -c \
'cd skyfield && ls && assay --batch skyfield/tests'

View File

@ -2,8 +2,7 @@ FROM mrupgrade/deadsnakes:2.6
RUN apt update
RUN apt install -y -y build-essential python2.6-dev
RUN pip install numpy==1.11.3
RUN pip install argparse mock pytz unittest2
RUN pip install argparse certifi jplephem mock pytz sgp4 unittest2
RUN pip install https://github.com/brandon-rhodes/assay/archive/master.zip
RUN pip install skyfield
RUN echo 'assay --batch skyfield.tests' > /root/.bash_history
RUN echo 'PYTHONPATH=.. assay --batch skyfield.tests' > /root/.bash_history
CMD cd skyfield/ci && /bin/bash