#!/bin/bash

docker info

cat << EOF | docker run -i \
                        -v ${PWD}:/astropy_src \
                        -a stdin -a stdout -a stderr \
                        astropy/astropy-py35-32bit-test-env:1.9 \
                        bash || exit $?

cd /astropy_src

echo "Output of uname -m:"
uname -m

echo "Output of sys.maxsize in Python:"
python3 -c 'import sys; print(sys.maxsize)'

# The doctestplus plugin in Astropy doesn't work correctly with pytest>=3.2, so
# we install an older version here
easy_install-3.5 pytest pytest-xdist

# Install git
apt-get install -y git

python3 setup.py test --parallel=4

EOF

#!/bin/bash

docker info

cat << EOF | docker run -i \
                        -v ${PWD}:/astropy_src \
                        -a stdin -a stdout -a stderr \
                        astropy/astropy-py35-32bit-test-env:1.9 \
                        bash || exit $?

cd /astropy_src

echo "Output of uname -m:"
uname -m

echo "Output of sys.maxsize in Python:"
python3 -c 'import sys; print(sys.maxsize)'

# The doctestplus plugin in Astropy doesn't work correctly with pytest>=3.2, so
# we install an older version here
easy_install-3.5 pytest pytest-xdist

# Install git
apt-get install -y git

PYTHONHASHSEED=42 python3 setup.py test --parallel=4

EOF

Use PYTHONHASHSEED, just to check [skip appveyor] [skip travis]
Use PYTHONHASHSEED, just to check [skip appveyor] [skip travis]
