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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Evan Edmond
fslpy
Commits
ea4ecc4f
Commit
ea4ecc4f
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Using custom docker images
parent
86f2e85e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/test_template.sh
+1
-12
1 addition, 12 deletions
.ci/test_template.sh
.gitlab-ci.yml
+10
-37
10 additions, 37 deletions
.gitlab-ci.yml
with
11 additions
and
49 deletions
.ci/test_template.sh
+
1
−
12
View file @
ea4ecc4f
...
@@ -2,17 +2,6 @@
...
@@ -2,17 +2,6 @@
set
-e
set
-e
# Install $PY_VERSION, xvfb, and all
# of the wxpython dependencies.
apt-get update
-y
||
true
apt-get
install
-y
software-properties-common python-software-properties xvfb libgtk2.0-0 libnotify4 freeglut3 libsdl1.2debian
add-apt-repository
-y
ppa:deadsnakes/ppa
apt-get update
-y
||
true
apt-get
install
-y
$PY_VERSION
"
$PY_VERSION
"
-dev
$PY_PACKAGES
$PY_VENV
test.venv
source
test.venv/bin/activate
pip
install
--upgrade
pip setuptools
# 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
...
@@ -23,7 +12,7 @@ if [[ "$CI_PROJECT_PATH" != "$UPSTREAM_PROJECT" ]]; then
...
@@ -23,7 +12,7 @@ if [[ "$CI_PROJECT_PATH" != "$UPSTREAM_PROJECT" ]]; then
git merge
--no-commit
--no-ff
upstream/master
;
git merge
--no-commit
--no-ff
upstream/master
;
fi
;
fi
;
$INSTALL_WX
source
/test.venv/bin/activate
# All other deps can be installed as normal.
# All other deps can be installed as normal.
# We install test dependenciesd through pip,
# We install test dependenciesd through pip,
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
10
−
37
View file @
ea4ecc4f
...
@@ -16,6 +16,11 @@
...
@@ -16,6 +16,11 @@
# 5. deploy: Uploading the build outputs to pypi/hosting servers, and the
# 5. deploy: Uploading the build outputs to pypi/hosting servers, and the
# documentation to a hosting server.
# documentation to a hosting server.
#
#
# Custom docker images are used for several jobs - these images are
# available at:
#
# https://hub.docker.com/u/pauldmccarthy/
#
# The test and style stages are executed on all branches of upstream and fork
# The test and style stages are executed on all branches of upstream and fork
# repositories.
# repositories.
#
#
...
@@ -81,12 +86,6 @@ stages:
...
@@ -81,12 +86,6 @@ stages:
# - TWINE_PASSWORD: - Password to use when uploading to pypi
# - TWINE_PASSWORD: - Password to use when uploading to pypi
#
#
# - TWINE_REPOSITORY_URL: - Pypi repository to upload to
# - TWINE_REPOSITORY_URL: - Pypi repository to upload to
#
# - WXPYTHON_UBUNTU1404_URL: - Url to a location containg binary wheels
# for wxPython/ubuntu 14.04
#
# - WXPYTHON_UBUNTU1604_URL: - Url to a location containg binary wheels
# for wxPython/ubuntu 16.04
###############################################################################
###############################################################################
...
@@ -161,48 +160,26 @@ variables:
...
@@ -161,48 +160,26 @@ variables:
test:2.7
:
test:2.7
:
stage
:
test
stage
:
test
image
:
ubuntu:16.04
image
:
pauldmccarthy/fsleyes-py27-wxpy4-gtk2
<<
:
*test_template
<<
:
*test_template
variables
:
PY_VERSION
:
"
python2.7"
PY_PACKAGES
:
"
python-pip
python-virtualenv"
PY_VENV
:
"
virtualenv"
INSTALL_WX
:
"
pip
install
--only-binary
wxpython
-f
$WXPYTHON_UBUNTU1604_URL
wxpython"
# we use ubuntu:14.04 for python 3.4, because
# wxpython is not available for 16.04/3.4
test:3.4
:
test:3.4
:
stage
:
test
stage
:
test
image
:
ubuntu:14.04
image
:
pauldmccarthy/fsleyes-py34-wxpy4-gtk2
<<
:
*test_template
<<
:
*test_template
variables
:
PY_VERSION
:
"
python3.4"
PY_PACKAGES
:
"
python3-pip
python3.4-venv"
PY_VENV
:
"
python3.4
-m
venv"
INSTALL_WX
:
"
pip
install
--pre
-f
$WXPYTHON_UBUNTU1404_URL
wxpython"
test:3.5
:
test:3.5
:
stage
:
test
stage
:
test
image
:
ubuntu:16.04
image
:
pauldmccarthy/fsleyes-py35-wxpy4-gtk2
<<
:
*test_template
<<
:
*test_template
variables
:
PY_VERSION
:
"
python3.5"
PY_PACKAGES
:
"
python3-pip
python3-venv"
PY_VENV
:
"
python3.5
-m
venv"
INSTALL_WX
:
"
pip
install
--only-binary
wxpython
-f
$WXPYTHON_UBUNTU1604_URL
wxpython"
test:3.6
:
test:3.6
:
stage
:
test
stage
:
test
image
:
ubuntu:16.04
image
:
pauldmccarthy/fsleyes-py36-wxpy4-gtk2
<<
:
*test_template
<<
:
*test_template
variables
:
PY_VERSION
:
"
python3.6"
PY_PACKAGES
:
"
python3-pip
python3.6-venv"
PY_VENV
:
"
python3.6
-m
venv"
INSTALL_WX
:
"
pip
install
--only-binary
wxpython
-f
$WXPYTHON_UBUNTU1604_URL
wxpython"
#############
#############
...
@@ -212,13 +189,9 @@ test:3.6:
...
@@ -212,13 +189,9 @@ test:3.6:
style
:
style
:
stage
:
style
stage
:
style
image
:
ubuntu:16.04
image
:
pauldmccarthy/fsleyes-py35-wxpy4-gtk2
<<
:
*test_template
<<
:
*test_template
variables
:
variables
:
PY_VERSION
:
"
python3.5"
PY_PACKAGES
:
"
python3-pip
python3-venv"
PY_VENV
:
"
python3.5
-m
venv"
INSTALL_WX
:
"
pip
install
--only-binary
wxpython
-f
$WXPYTHON_UBUNTU1604_URL
wxpython"
TEST_STYLE
:
"
true"
TEST_STYLE
:
"
true"
...
...
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