Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
0843d09e
"advanced_programming/object_oriented_programming.md" did not exist on "fa7108e53dca621e3f86d542e5b2e09748eb401e"
Commit
0843d09e
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
no git, aliases don't propagate from before_script to script
parent
a504a6cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+12
-17
12 additions, 17 deletions
.gitlab-ci.yml
with
12 additions
and
17 deletions
.gitlab-ci.yml
+
12
−
17
View file @
0843d09e
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment