Skip to content
Snippets Groups Projects
Commit 75f34a84 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Python 3: remove Python 2 from CI config

Also, use Python 3.5 instead of Python 3.7 - I think we're going
to be using 3.5 for a bit since that's default for Debian 9.
parent e5ffd2c6
No related branches found
No related tags found
1 merge request!29Python3
......@@ -46,7 +46,7 @@ before_script:
# set python version
- PYTHON_VERSION="${CI_JOB_NAME##*:}"
- PYTHON_MAJOR="${PYTHON_VERSION:0:1}"
- if [[ "${PYTHON_MAJOR}" -eq 2 ]]; then PYTHON="python"; else PYTHON="python3"; fi
- PYTHON="python3"
# install build requirements
- apt-get -yqq update
- apt-get -o dir::cache::archives="${APT_CACHE_DIR}" install -yqq
......@@ -58,8 +58,6 @@ before_script:
libxml2-dev
swig
${PYTHON}-pip
# install voeventlib for python2
- if [[ "${PYTHON_MAJOR}" -eq 2 ]]; then apt-get -o dir::cache::archives="${APT_CACHE_DIR}" install -yqq python-voeventlib; fi
# install everything else from pip
- ${PYTHON} -m pip install -r requirements.txt
# create logs path required for tests
......@@ -79,13 +77,9 @@ before_script:
- .cache/pip
- .cache/apt
test:2.7:
test:3.5:
<<: *test
test:3.7:
<<: *test
allow_failure: true
branch_image:
stage: branch
script:
......
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