Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nightlies
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
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
bob
nightlies
Commits
e1b6d0e1
There was a problem fetching the pipeline summary.
Commit
e1b6d0e1
authored
8 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Testing ci
parent
89163b90
Branches
Branches containing commit
No related tags found
1 merge request
!2
Ci2
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+42
-0
42 additions, 0 deletions
.gitlab-ci.yml
ci/before_test.sh
+4
-1
4 additions, 1 deletion
ci/before_test.sh
ci/test.sh
+0
-2
0 additions, 2 deletions
ci/test.sh
with
46 additions
and
3 deletions
.gitlab-ci.yml
+
42
−
0
View file @
e1b6d0e1
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
# Definition of our build pipeline
# Definition of our build pipeline
stages
:
stages
:
-
buildbob
-
buildbob
-
testbob
-
wheelsbob
# ---------
# ---------
# Templates
# Templates
...
@@ -28,6 +30,29 @@ stages:
...
@@ -28,6 +30,29 @@ stages:
-
dist/
-
dist/
# Template for the test stage - re-installs from uploaded wheels
# Needs to run on all supported architectures, platforms and python versions
.test_template
:
&test_job
stage
:
testbob
before_script
:
-
./ci/before_test.sh 1 buildout-bob.cfg
script
:
-
./ci/test.sh
after_script
:
-
./ci/after_test.sh
# Template for the wheel uploading stage
# Needs to run against all combinations of python and operating systems
.wheels_template
:
&wheels_job
stage
:
wheels
environment
:
intranet
only
:
-
new_ci
-
/^v\d+\.\d+\.\d+([abc]\d*)?$/
# PEP-440 compliant version (tags)
script
:
-
./wheels_dependencies.sh
# -------------
# -------------
# Build Targets
# Build Targets
# -------------
# -------------
...
@@ -39,3 +64,20 @@ build_linux_27:
...
@@ -39,3 +64,20 @@ build_linux_27:
PYTHON_VERSION
:
"
2.7"
PYTHON_VERSION
:
"
2.7"
tags
:
tags
:
-
conda-linux
-
conda-linux
test_linux_27
:
<<
:
*test_job
variables
:
*linux_27_build_variables
dependencies
:
-
build_linux_27
tags
:
-
conda-linux
wheels_linux_27
:
<<
:
*wheels_job
variables
:
*linux_27_build_variables
dependencies
:
-
build_linux_27
tags
:
-
conda-linux
This diff is collapsed.
Click to expand it.
ci/before_test.sh
+
4
−
1
View file @
e1b6d0e1
...
@@ -3,7 +3,10 @@
...
@@ -3,7 +3,10 @@
source
$(
dirname
${
0
}
)
/functions.sh
source
$(
dirname
${
0
}
)
/functions.sh
run_cmd
$(
dirname
${
0
}
)
/before_build.sh
PIPINSTALL
=
$1
CONFIG_FILE
=
$2
run_cmd
$(
dirname
${
0
}
)
/before_build.sh
${
PIPINSTALL
}
${
CONFIG_FILE
}
# Source the newly created virtualenv
# Source the newly created virtualenv
log_info
"
$
source
${
PREFIX
}
/bin/activate"
log_info
"
$
source
${
PREFIX
}
/bin/activate"
...
...
This diff is collapsed.
Click to expand it.
ci/test.sh
+
0
−
2
View file @
e1b6d0e1
...
@@ -7,7 +7,5 @@ run_cmd cd ${PREFIX}
...
@@ -7,7 +7,5 @@ run_cmd cd ${PREFIX}
# The tests:
# The tests:
run_cmd
${
PREFIX
}
/bin/python
${
BOB_PREFIX_PATH
}
/bin/coverage run
--source
=
${
CI_PROJECT_NAME
}
${
BOB_PREFIX_PATH
}
/bin/nosetests
-sv
${
CI_PROJECT_NAME
}
run_cmd
${
PREFIX
}
/bin/python
${
BOB_PREFIX_PATH
}
/bin/coverage run
--source
=
${
CI_PROJECT_NAME
}
${
BOB_PREFIX_PATH
}
/bin/nosetests
-sv
${
CI_PROJECT_NAME
}
run_cmd
${
PREFIX
}
/bin/python
${
BOB_PREFIX_PATH
}
/bin/coverage report
run_cmd
${
PREFIX
}
/bin/python
${
BOB_PREFIX_PATH
}
/bin/sphinx-build
-b
doctest
${
CI_PROJECT_DIR
}
/doc
${
CI_PROJECT_NAME
}
/sphinx
run_cmd
cd
${
CI_PROJECT_DIR
}
run_cmd
cd
${
CI_PROJECT_DIR
}
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