Skip to content
Snippets Groups Projects
Commit 3e0f295c authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Trying to do tests on 3.5/3.6 - making some assumptions about gitlab-ci here.

parent 8e7af3d8
No related branches found
No related tags found
No related merge requests found
...@@ -70,8 +70,8 @@ stages: ...@@ -70,8 +70,8 @@ stages:
# #
# - TWINE_REPOSITORY_URL: - Pypi repository to upload to # - TWINE_REPOSITORY_URL: - Pypi repository to upload to
# #
# - WXPYTHON_DEBIAN8_URL: - Url to a location containg binary wheels # - WXPYTHON_UBUNTU1604_URL: - Url to a location containg binary wheels
# for wxPython/debian 8 # for wxPython/ubuntu 16.04
############################################################################### ###############################################################################
...@@ -209,6 +209,7 @@ variables: ...@@ -209,6 +209,7 @@ variables:
.test: &test_template .test: &test_template
stage: test stage: test
image: ubuntu:16.04
<<: *setup_ssh <<: *setup_ssh
# Releases are just tags on a release # Releases are just tags on a release
...@@ -230,19 +231,15 @@ variables: ...@@ -230,19 +231,15 @@ variables:
git merge --no-commit --no-ff upstream/master; git merge --no-commit --no-ff upstream/master;
fi; fi;
# I am currently assuming that we are
# running a debian 8/jessie container
# (the python:2.7 and 3.6 images are
# based on this).
# We need to install xvfb, and all of # We need to install xvfb, and all of
# the wxpython dependencies. # the wxpython dependencies.
- apt-get update -y - apt-get update -y || true
- apt-get install -y xvfb libgtk2.0-0 - apt-get install -y xvfb libgtk2.0-0
- apt-get install -y libnotify4 freeglut3 libsdl1.2debian - apt-get install -y libnotify4 freeglut3 libsdl1.2debian
# Linux builds for wxPython are currently not # Linux builds for wxPython are currently not
# on pypi, but are available at this url. # on pypi, but are available at this url.
- pip install --only-binary wxpython -f $WXPYTHON_DEBIAN8_URL wxpython - pip install --only-binary wxpython -f $WXPYTHON_UBUNTU1604_URL wxpython
# All other deps can be installed as # All other deps can be installed as
# normal. scipy is required by nibabel, # normal. scipy is required by nibabel,
...@@ -285,30 +282,39 @@ variables: ...@@ -285,30 +282,39 @@ variables:
- python -m coverage report - python -m coverage report
test:2.7: .install_python: &install_python
<<: *test_template before_script:
image: python:2.7 - apt-get update -y || true
- apt-get install wget software-properties-common python-software-properties
- add-apt-repository -y ppa:deadsnakes/ppa
- apt-get update -y || true
- apt-get install -y "$PYTHON_VERSION"
- alias python="$PYTHON_VERSION"
- wget https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- python -V
- pip -V
test:3.4: test:2.7:
<<: *test_template <<: *test_template
image: python:3.4 <<: *install_python
variables:
- PYTHON_VERSION: "python2.7"
test:3.5:
<<: *test_template
<<: *install_python
variables:
- PYTHON_VERSION: "python3.5"
# a wxphoenix/3.5 build test:3.6:
# is not yet available <<: *test_template
# test:3.5: <<: *install_python
# <<: *test_template variables:
# image: python:3.5 - PYTHON_VERSION: "python3.6"
# a wxphoenix/3.6 build
# is not yet available
# test:3.6:
# <<: *test_template
# image: python:3.6
############# #############
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment