summaryrefslogtreecommitdiff
path: root/sandbox/infrastructure/crosstest/t.sh
blob: e2433c66acf3c7db61694c55a0628ec4ba6cae68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

# test local wheel
WHL=../docutils-0.17.1b2.dev0-py2.py3-none-any.whl
WHL=TESTPYPI
# PRE =

for VDIR in ./py3.* ; do
    echo "$VDIR"
    echo "=========="

    cd $VDIR
    export PYTHONPATH= ; . bin/activate
    export PYTHONWARNINGS=default
    export LC_ALL=C
    if [ -e $WHL ] ; then
        python -m pip install $WHL
    elif [ $WHL = "TESTPYPI" ] ; then
        # cache command available in newer pips
        python -m pip cache remove docutils
        python -m pip install --no-cache-dir --index-url https://test.pypi.org/simple/ --no-deps docutils
    else
        python -m pip install $WHL
    fi
    python -m pip show docutils
    read -p "pause" X
    cp -Lr ~/projects/docutils-code/docutils/test . 
    python test/alltests.py
    read -p "pause" X
    deactivate
    cd ..
done