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

Testing new ci

parent a60d6965
No related branches found
No related tags found
1 merge request!2Ci2
Pipeline #
# This build file is defined in two parts: 1) a generic set of instructions you # This build file heavily uses template features from YAML so it is generic
# probably **don't** need to change and 2) a part you may have to tune to your # enough for any Bob project. Don't modify it unless you know what you're
# project. It heavily uses template features from YAML to help you in only # doing.
# changing a minimal part of it and avoid code duplication to a maximum while
# still providing a nice pipeline display on your package.
# 1) Generic instructions (only change if you know what you're doing)
# -------------------------------------------------------------------
# Definition of our build pipeline # Definition of our build pipeline
stages: stages:
- build-bob - buildbob
# Global variables
variables:
CONDA_PREFIX: env
# ---------
# Templates
# ---------
# Template for the build stage # Template for the build stage
# Needs to run on all supported architectures, platforms and python versions # Needs to run on all supported architectures, platforms and python versions
.build_bob: &build_job .build_template: &build_job
stage: build-bob stage: buildbob
before_script: before_script:
- git clean -ffdx - git clean -ffdx
- chmod 755 ci/install.sh - chmod 755 ci/install.sh
- ./ci/install.sh ci #updates - ./ci/install.sh ci #updates
- ./ci/before_build.sh 0 - ./ci/before_build.sh 0
script: script:
- ./ci/build.sh - ./ci/build.sh buildout-bob.cfg
after_script: after_script:
- ./ci/after_build.sh - ./ci/after_build.sh
artifacts: artifacts:
expire_in: 1 day expire_in: 1 week
paths: paths:
- dist/ - dist/
# Template for building on a Linux machine # -------------
.build_linux_template: &linux_build_job # Build Targets
<<: *build_job # -------------
variables: &linux_build_variables
<<: *build_variables
CONDA_FOLDER: "/local/conda"
CFLAGS: "-D_GLIBCXX_USE_CXX11_ABI=0 -coverage"
CXXFLAGS: "-D_GLIBCXX_USE_CXX11_ABI=0 -coverage"
# Template for building on a Mac OSX machine
.build_mac_template: &macosx_build_job
<<: *build_job
variables: &macosx_build_variables
<<: *build_variables
CONDA_FOLDER: "/opt/conda"
MACOSX_DEPLOYMENT_TARGET: "10.9"
CFLAGS: "-pthread -coverage"
CXXFLAGS: "-pthread -coverage"
LDFLAGS: "-lpthread"
# Linux + Python 2.7: Builds, tests, uploads wheel and deploys (if needed)
# 2) Package specific instructions (you may tune this if needed)
# --------------------------------------------------------------
# Linux + Python 2.7: Builds and tests
build_linux_27: build_linux_27:
<<: *linux_build_job <<: *build_job
variables: &linux_27_build_variables variables: &linux_27_build_variables
<<: *linux_build_variables PYTHON_VERSION: "2.7"
PYTHON_VER: "2.7"
WHEEL_TAG: "py27"
tags: tags:
- conda-linux - conda-linux
# Linux + Python 3.4: Builds and tests
build_linux_34:
<<: *linux_build_job
variables: &linux_34_build_variables
<<: *linux_build_variables
PYTHON_VER: "3.4"
WHEEL_TAG: "py3"
tags:
- conda-linux
# Linux + Python 3.5: Builds and tests
build_linux_35:
<<: *linux_build_job
variables: &linux_35_build_variables
<<: *linux_build_variables
PYTHON_VER: "3.5"
WHEEL_TAG: "py3"
tags:
- conda-linux
# Mac OSX + Python 2.7: Builds, tests and uploads the wheel
build_macosx_27:
<<: *macosx_build_job
variables: &macosx_27_build_variables
<<: *macosx_build_variables
PYTHON_VER: "2.7"
WHEEL_TAG: "py27"
tags:
- conda-macosx
# Mac OSX + Python 3.4: Builds and tests
build_macosx_34:
<<: *macosx_build_job
variables: &macosx_34_build_variables
<<: *macosx_build_variables
PYTHON_VER: "3.4"
WHEEL_TAG: "py3"
tags:
- conda-macosx
# Mac OSX + Python 3.5: Builds, tests, uploads the wheel and the latest docs
build_macosx_35:
<<: *macosx_build_job
variables: &macosx_35_build_variables
<<: *macosx_build_variables
PYTHON_VER: "3.5"
WHEEL_TAG: "py3"
tags:
- conda-macosx
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
source $(dirname ${0})/functions.sh source $(dirname ${0})/functions.sh
run_cmd ./bin/buildout run_cmd ./bin/buildout -c ${1}
if [ -x ./bin/bob_dbmanage.py ]; then if [ -x ./bin/bob_dbmanage.py ]; then
run_cmd ./bin/bob_dbmanage.py all download --force; run_cmd ./bin/bob_dbmanage.py all download --force;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment