Adding tests on host linux beyond docker.

This commit is contained in:
Thomas Ferreira de Lima 2018-12-20 14:08:30 -05:00
parent 6b37e67de6
commit d20e12ef41
No known key found for this signature in database
GPG Key ID: 43E98870EAA0A86E
1 changed files with 106 additions and 85 deletions

View File

@ -5,12 +5,14 @@ matrix:
- name: "manylinux1_x86_64 cp37-cp37m package" - name: "manylinux1_x86_64 cp37-cp37m package"
os: linux os: linux
sudo: true sudo: true
python: '3.7-dev'
services: services:
- docker - docker
env: env:
- DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64" - DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64"
- PY_VERSION="cp37-cp37m" - PY_VERSION="cp37-cp37m"
- DOCKER_BUILD=true - DOCKER_BUILD=true
- TEST_IN_HOST=true
- MATRIX_EVAL="" - MATRIX_EVAL=""
cache: cache:
directories: directories:
@ -33,12 +35,14 @@ matrix:
- name: "manylinux1_x86_64 cp36-cp36m package" - name: "manylinux1_x86_64 cp36-cp36m package"
os: linux os: linux
sudo: true sudo: true
python: '3.6'
services: services:
- docker - docker
env: env:
- DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64" - DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64"
- PY_VERSION="cp36-cp36m" - PY_VERSION="cp36-cp36m"
- DOCKER_BUILD=true - DOCKER_BUILD=true
- TEST_IN_HOST=true
- MATRIX_EVAL="" - MATRIX_EVAL=""
cache: cache:
directories: directories:
@ -61,12 +65,14 @@ matrix:
- name: "manylinux1_x86_64 cp35-cp35m package" - name: "manylinux1_x86_64 cp35-cp35m package"
os: linux os: linux
sudo: true sudo: true
python: '3.5'
services: services:
- docker - docker
env: env:
- DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64" - DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64"
- PY_VERSION="cp35-cp35m" - PY_VERSION="cp35-cp35m"
- DOCKER_BUILD=true - DOCKER_BUILD=true
- TEST_IN_HOST=true
- MATRIX_EVAL="" - MATRIX_EVAL=""
cache: cache:
directories: directories:
@ -89,12 +95,14 @@ matrix:
- name: "manylinux1_x86_64 cp34-cp34m package" - name: "manylinux1_x86_64 cp34-cp34m package"
os: linux os: linux
sudo: true sudo: true
python: '3.4'
services: services:
- docker - docker
env: env:
- DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64" - DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64"
- PY_VERSION="cp34-cp34m" - PY_VERSION="cp34-cp34m"
- DOCKER_BUILD=true - DOCKER_BUILD=true
- TEST_IN_HOST=true
- MATRIX_EVAL="" - MATRIX_EVAL=""
cache: cache:
directories: directories:
@ -117,12 +125,14 @@ matrix:
- name: "manylinux1_x86_64 cp27-cp27mu package" - name: "manylinux1_x86_64 cp27-cp27mu package"
os: linux os: linux
sudo: true sudo: true
python: '2.7'
services: services:
- docker - docker
env: env:
- DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64" - DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64"
- PY_VERSION="cp27-cp27mu" - PY_VERSION="cp27-cp27mu"
- DOCKER_BUILD=true - DOCKER_BUILD=true
- TEST_IN_HOST=true
- MATRIX_EVAL="" - MATRIX_EVAL=""
cache: cache:
directories: directories:
@ -145,12 +155,14 @@ matrix:
- name: "manylinux1_x86_64 cp27-cp27m package" - name: "manylinux1_x86_64 cp27-cp27m package"
os: linux os: linux
sudo: true sudo: true
python: '2.7'
services: services:
- docker - docker
env: env:
- DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64" - DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64"
- PY_VERSION="cp27-cp27m" - PY_VERSION="cp27-cp27m"
- DOCKER_BUILD=true - DOCKER_BUILD=true
- TEST_IN_HOST=true
- MATRIX_EVAL="" - MATRIX_EVAL=""
cache: cache:
directories: directories:
@ -266,96 +278,96 @@ matrix:
- PIP_UPDATE="1" - PIP_UPDATE="1"
- PYTHON_BUILD=true - PYTHON_BUILD=true
- name: "klayout python3.7 package" # - name: "klayout python3.7 package"
os: linux # os: linux
dist: trusty # Ubuntu 14.04 # dist: trusty # Ubuntu 14.04
sudo: false # sudo: false
language: python # language: python
python: '3.7-dev' # python: '3.7-dev'
env: # env:
- MATRIX_EVAL="" # - MATRIX_EVAL=""
- PIP_UPDATE="1" # - PIP_UPDATE="1"
- PYTHON_BUILD=true # - PYTHON_BUILD=true
- CC=clang # - CC=clang
- CXX=clang++ # - CXX=clang++
- name: "klayout python3.6 package" # - name: "klayout python3.6 package"
os: linux # os: linux
dist: trusty # Ubuntu 14.04 # dist: trusty # Ubuntu 14.04
sudo: false # sudo: false
language: python # language: python
python: '3.6' # python: '3.6'
env: # env:
- MATRIX_EVAL="" # - MATRIX_EVAL=""
- PIP_UPDATE="1" # - PIP_UPDATE="1"
- PYTHON_BUILD=true # - PYTHON_BUILD=true
- CC=clang # - CC=clang
- CXX=clang++ # - CXX=clang++
- name: "klayout python2.7 package" # - name: "klayout python2.7 package"
os: linux # os: linux
dist: trusty # Ubuntu 14.04 # dist: trusty # Ubuntu 14.04
sudo: false # sudo: false
language: python # language: python
python: '2.7' # python: '2.7'
env: # env:
- MATRIX_EVAL="" # - MATRIX_EVAL=""
- PIP_UPDATE="1" # - PIP_UPDATE="1"
- PYTHON_BUILD=true # - PYTHON_BUILD=true
- CC=clang # - CC=clang
- CXX=clang++ # - CXX=clang++
- name: "klayout python2.6 package" # - name: "klayout python2.6 package"
os: linux # os: linux
dist: trusty # Ubuntu 14.04 # dist: trusty # Ubuntu 14.04
sudo: false # sudo: false
language: python # language: python
python: '2.6' # python: '2.6'
env: # env:
- MATRIX_EVAL="" # - MATRIX_EVAL=""
- PIP_UPDATE="0" # setuptools installed from last pip has syntax error on py 2.6 # - PIP_UPDATE="0" # setuptools installed from last pip has syntax error on py 2.6
- PYTHON_BUILD=true # - PYTHON_BUILD=true
- CC=clang # - CC=clang
- CXX=clang++ # - CXX=clang++
- name: "klayout python3.3 package" # - name: "klayout python3.3 package"
os: linux # os: linux
dist: trusty # Ubuntu 14.04 # dist: trusty # Ubuntu 14.04
sudo: false # sudo: false
language: python # language: python
python: '3.3' # python: '3.3'
env: # env:
- MATRIX_EVAL="" # - MATRIX_EVAL=""
- PIP_UPDATE="1" # - PIP_UPDATE="1"
- PYTHON_BUILD=true # - PYTHON_BUILD=true
- CC=clang # - CC=clang
- CXX=clang++ # - CXX=clang++
- name: "klayout python3.4 package" # - name: "klayout python3.4 package"
os: linux # os: linux
dist: trusty # Ubuntu 14.04 # dist: trusty # Ubuntu 14.04
sudo: false # sudo: false
language: python # language: python
python: '3.4' # python: '3.4'
env: # env:
- MATRIX_EVAL="" # - MATRIX_EVAL=""
- PIP_UPDATE="1" # - PIP_UPDATE="1"
- PYTHON_BUILD=true # - PYTHON_BUILD=true
- CC=clang # - CC=clang
- CXX=clang++ # - CXX=clang++
- name: "klayout python3.5 package" # - name: "klayout python3.5 package"
os: linux # os: linux
dist: trusty # Ubuntu 14.04 # dist: trusty # Ubuntu 14.04
sudo: false # sudo: false
language: python # language: python
python: '3.5' # python: '3.5'
env: # env:
- MATRIX_EVAL="" # - MATRIX_EVAL=""
- PIP_UPDATE="1" # - PIP_UPDATE="1"
- PYTHON_BUILD=true # - PYTHON_BUILD=true
- CC=clang # - CC=clang
- CXX=clang++ # - CXX=clang++
# KLayout builds for mac # KLayout builds for mac
# Python 3 # Python 3
@ -472,12 +484,21 @@ script:
klayout_version=$(python -c 'import setup; print(setup.Config().version())'); klayout_version=$(python -c 'import setup; print(setup.Config().version())');
mkdir -p deploy/dist-pymod/$klayout_version; mkdir -p deploy/dist-pymod/$klayout_version;
cp -a wheelhouse/klayout-*manylinux1*.whl deploy/dist-pymod/$klayout_version; cp -a wheelhouse/klayout-*manylinux1*.whl deploy/dist-pymod/$klayout_version;
if [ "$TEST_IN_HOST" = true ]; then
pip install klayout --no-index -f ./wheelhouse;
python testdata/pymod/import_db.py;
python testdata/pymod/import_rdb.py;
python testdata/pymod/import_tl.py;
python testdata/pymod/pya_tests.py;
fi
fi fi
- if [ "$PYTHON_BUILD" = true ]; then - if [ "$PYTHON_BUILD" = true ]; then
python setup.py build; python setup.py build;
python setup.py bdist_wheel; python setup.py bdist_wheel;
python setup.py install; python setup.py install;
python -m unittest testdata/pymod/import_db.py testdata/pymod/import_rdb.py testdata/pymod/import_tl.py; python testdata/pymod/import_db.py;
python testdata/pymod/import_rdb.py;
python testdata/pymod/import_tl.py;
python testdata/pymod/pya_tests.py; python testdata/pymod/pya_tests.py;
klayout_version=$(python -c 'import setup; print(setup.Config().version())'); klayout_version=$(python -c 'import setup; print(setup.Config().version())');
mkdir -p deploy/dist-pymod/$klayout_version; mkdir -p deploy/dist-pymod/$klayout_version;