File: run_32bit_test.sh

package info (click to toggle)
indexed-gzip 0.8.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 412 kB
  • sloc: ansic: 1,495; python: 601; makefile: 28
file content (39 lines) | stat: -rwxr-xr-x 797 bytes parent folder | download
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
34
35
36
37
38
39
#!/bin/bash
#
# This script is called via .travis.yml. It is not intended
# to be called in any other manner.
#

PYV=$PYTHON_VERSION

apt-get update
apt-get install -y libssl-dev openssl wget build-essential
cd /
wget https://www.python.org/ftp/python/$PYV/Python-$PYV.tar.xz
tar xf Python-$PYV.tar.xz
cd Python-$PYV
./configure --prefix=/mypython
make && make install
cd /mypython/bin

if [ ! -e python ]; then
    ln -s python3 python
fi

if [ ! -e pip ]; then
    if [ -e pip3 ]; then
        ln -s pip3 pip
    else
        wget https://bootstrap.pypa.io/get-pip.py
        ./python get-pip.py
    fi
fi

export PATH=/mypython/bin:$PATH

pip install cython numpy pytest coverage pytest-cov

cd /indexed_gzip
python setup.py develop
pytest -v -s --niters 500
pytest -v -s --niters 500 --concat