Skip to content
Snippets Groups Projects
Commit e1b6d0e1 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Testing ci

parent 89163b90
Branches
No related tags found
1 merge request!2Ci2
Pipeline #
...@@ -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
...@@ -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"
......
...@@ -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}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment