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

no git, aliases don't propagate from before_script to script

parent a504a6cc
No related branches found
No related tags found
No related merge requests found
...@@ -221,6 +221,18 @@ variables: ...@@ -221,6 +221,18 @@ variables:
script: script:
# Install $PYTHON_VERSION
- apt-get update -y || true
- apt-get install -y git 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
# If running on a fork repository, we merge in the # If running on a fork repository, we merge in the
# upstream/master branch. This is done so that merge # upstream/master branch. This is done so that merge
# requests from fork to the parent repository will # requests from fork to the parent repository will
...@@ -282,37 +294,20 @@ variables: ...@@ -282,37 +294,20 @@ variables:
- python -m coverage report - python -m coverage report
.install_python: &install_python
before_script:
- apt-get update -y || true
- apt-get install -y 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:2.7: test:2.7:
<<: *test_template <<: *test_template
<<: *install_python
variables: variables:
PYTHON_VERSION: "python2.7" PYTHON_VERSION: "python2.7"
test:3.5: test:3.5:
<<: *test_template <<: *test_template
<<: *install_python
variables: variables:
PYTHON_VERSION: "python3.5" PYTHON_VERSION: "python3.5"
test:3.6: test:3.6:
<<: *test_template <<: *test_template
<<: *install_python
variables: variables:
PYTHON_VERSION: "python3.6" PYTHON_VERSION: "python3.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