Skip to content
Snippets Groups Projects
Commit aafc8b2d authored by Andre Philippe Sailer's avatar Andre Philippe Sailer
Browse files

Add stages in pipeline, pass installed ilcdirac to other stages

Add coverage to individual stages, ignore pylint reducing coverage average
Pass coverage file from unittests to subsequent stages to calculate proper total

Backport installation from master and simplify install

Move things to subfolder so we can add to artifact

Use recent git version from cvmfs

Allow failure for se and cvmfs tests for people that cannot use the proxy

Expire artifacts in 1 day
pass coverage to subsequent tests

Fix missing dirac-proxy-init -x for setest cc7
parent 192d2e57
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source .gitlab-ci.d/set-reportstyle.sh
export PYTEST_ADDOPTS="${PYTEST_ADDOPTS} --cov-append"
py.test $DIR/../Interfaces/API/NewInterface/Tests/Test_FullCVMFSTests.py
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source .gitlab-ci.d/set-reportstyle.sh
export PYTEST_ADDOPTS="${PYTEST_ADDOPTS} --cov-append"
export XrdSecPROTOCOL=gsi,unix
py.test $DIR/../Workflow/Modules/Test/Test_SEs.py
before_script:
#pre-installation script
- cd ..
- shopt -s extglob
- rm -rf !(ILCDIRAC)
- rm -rf .installCache
- source /cvmfs/clicdp.cern.ch/software/git/2.13.2/x86_64-slc6-gcc7-opt/setup.sh
- shopt -s extglob
stages:
- install
- unittest
- integration
- create
- deploy
install:SL6:
stage: install
tags:
- docker
image: ilcdirac/slc6-base
script:
- cd ../
- rm -rf !(ILCDIRAC) .installCache
- mv ILCDIRAC ILCDIRAC_commit
- mkdir ILCDIRAC; cd ILCDIRAC
- mkdir installation; cd installation
- wget -O dirac-install -np https://raw.github.com/DIRACGrid/DIRAC/master/Core/scripts/dirac-install.py --no-check-certificate
- chmod +x dirac-install
- ./dirac-install -V ILCDIRAC -r v26r0p9 -g 2017-01-27
- rm -rf DIRAC
- mkdir DIRAC
- cd DIRAC
- git clone https://github.com/DIRACGrid/DIRAC.git .
- git checkout origin/rel-v6r15
- git clone https://github.com/DIRACGrid/DIRAC.git --single-branch -b rel-v6r15 DIRAC
- rm -rf ILCDIRAC
- mv ../../ILCDIRAC_commit ILCDIRAC
- source bashrc
- dirac-deploy-scripts
- unset REQUESTS_CA_BUNDLE
- pip install --upgrade pip
- pip uninstall -y distribute
- pip install --upgrade setuptools || echo "done"
- pip install --upgrade setuptools_scm || echo "done scm"
- pip install --upgrade pylint mock MySQL-python pytest-cov pytest-randomly
- cd ..
artifacts:
paths:
- installation
expire_in: 1 day
install:CC7:
stage: install
tags:
- docker
image: ilcdirac/cc7-base
script:
- cd ../
- rm -rf !(ILCDIRAC) .installCache
- mv ILCDIRAC ILCDIRAC_commit
- mkdir ILCDIRAC; cd ILCDIRAC
- mkdir installation; cd installation
- wget -O dirac-install -np https://raw.github.com/DIRACGrid/DIRAC/master/Core/scripts/dirac-install.py --no-check-certificate
- chmod +x dirac-install
- ./dirac-install -V ILCDIRAC -r v26r0p9 -g 2017-01-27
- rm -rf DIRAC
- git clone https://github.com/DIRACGrid/DIRAC.git --single-branch -b rel-v6r15 DIRAC
- rm -rf ILCDIRAC
- mv ILCDIRAC_commit ILCDIRAC
- mv ../../ILCDIRAC_commit ILCDIRAC
- source bashrc
- dirac-deploy-scripts
- unset REQUESTS_CA_BUNDLE
- pip install --upgrade pip
- pip uninstall -y distribute
- pip install --upgrade setuptools || echo "done"
- pip install --upgrade setuptools_scm || echo "done scm"
- echo "done with setuptools"
- pip install --upgrade pylint mock MySQL-python
- easy_install pytest-cov pytest-randomly
- cd ILCDIRAC
- pip install --upgrade pylint mock MySQL-python pytest-cov pytest-randomly
- cd ..
artifacts:
paths:
- installation
expire_in: 1 day
unittest:SL6:
stage: unittest
tags:
- docker
dependencies:
- install:SL6
image: ilcdirac/slc6-base
script:
- export HOME=/root/
- cd installation/ILCDIRAC
- source ../bashrc
- unset PYTHONOPTIMIZE
- .gitlab-ci.d/run-unittests.sh
coverage: '/\d+\%\s*$/'
artifacts:
paths:
- installation/ILCDIRAC/.coverage
expire_in: 1 day
stages:
- test
unittest:CC7:
stage: unittest
tags:
- docker
dependencies:
- install:CC7
image: ilcdirac/cc7-base
script:
- export HOME=/root/
- cd installation/ILCDIRAC
- source ../bashrc
- unset PYTHONOPTIMIZE
- .gitlab-ci.d/run-unittests.sh
coverage: '/\d+\%\s*$/'
artifacts:
paths:
- installation/ILCDIRAC/.coverage
expire_in: 1 day
pylint6:
stage: test
pylint:SL6:
stage: integration
dependencies:
- install:SL6
tags:
- docker
image: ilcdirac/slc6-base
script:
- export HOME=/root/
- cd installation/ILCDIRAC
- source ../bashrc
- unset PYTHONOPTIMIZE
- .gitlab-ci.d/run-pylint.sh
unittest6:
stage: test
pylint:CC7:
stage: integration
tags:
- docker
image: ilcdirac/slc6-base
image: ilcdirac/cc7-base
dependencies:
- install:CC7
script:
- export HOME=/root/
- cd installation/ILCDIRAC
- source ../bashrc
- unset PYTHONOPTIMIZE
- .gitlab-ci.d/run-unittests.sh
- .gitlab-ci.d/run-pylint.sh
cvmfstests6:
stage: test
cvmfstests:SL6:
stage: integration
tags:
- docker
dependencies:
- install:SL6
- unittest:SL6
image: ilcdirac/slc6-extra
script:
- export HOME=/root/
- cd installation/ILCDIRAC
- source ../bashrc
- dirac-proxy-init -x <<< $CERT_PASSPHRASE
- dirac-configure -S ILC-Production -C dips://voilcdirac012.cern.ch:9135/Configuration/Server --SkipCAChecks
- echo "mysql:x:0:0:MySQL Server:/var/lib/mysql:/bin/bash" >> /etc/passwd
- .gitlab-ci.d/run-cvmfstests.sh
coverage: '/\d+\%\s*$/'
allow_failure: true
cvmfstests7:
stage: test
cvmfstests:CC7:
stage: integration
tags:
- docker
dependencies:
- install:CC7
- unittest:CC7
image: ilcdirac/cc7-extra
script:
- export HOME=/root/
- cd installation/ILCDIRAC
- source ../bashrc
- dirac-proxy-init -x <<< $CERT_PASSPHRASE
- dirac-configure -S ILC-Production -C dips://voilcdirac012.cern.ch:9135/Configuration/Server --SkipCAChecks
- echo "mysql:x:0:0:MySQL Server:/var/lib/mysql:/bin/bash" >> /etc/passwd
- .gitlab-ci.d/run-cvmfstests.sh
coverage: '/\d+\%\s*$/'
allow_failure: true
pylint7:
stage: test
tags:
- docker
image: ilcdirac/cc7-base
script:
- source ../bashrc
- unset PYTHONOPTIMIZE
- .gitlab-ci.d/run-pylint.sh
unittest7:
stage: test
tags:
- docker
image: ilcdirac/cc7-base
script:
- source ../bashrc
- unset PYTHONOPTIMIZE
- .gitlab-ci.d/run-unittests.sh
setests6:
stage: test
setests:SL6:
stage: integration
tags:
- docker
dependencies:
- install:SL6
- unittest:SL6
image: ilcdirac/slc6-base
script:
- export HOME=/root/
- cd installation/ILCDIRAC
- source ../bashrc
- dirac-proxy-init -x <<< $CERT_PASSPHRASE
- dirac-configure -S ILC-Production -C dips://voilcdirac012.cern.ch:9135/Configuration/Server --SkipCAChecks
- dirac-proxy-init <<< $CERT_PASSPHRASE
- .gitlab-ci.d/run-setests.sh
coverage: '/\d+\%\s*$/'
allow_failure: true
setests7:
stage: test
setests:CC7:
stage: integration
tags:
- docker
dependencies:
- install:CC7
- unittest:CC7
image: ilcdirac/cc7-extra
script:
- export HOME=/root/
- cd installation/ILCDIRAC
- source ../bashrc
- dirac-proxy-init -x <<< $CERT_PASSPHRASE
- dirac-configure -S ILC-Production -C dips://voilcdirac012.cern.ch:9135/Configuration/Server --SkipCAChecks
- dirac-proxy-init <<< $CERT_PASSPHRASE
- .gitlab-ci.d/run-setests.sh
coverage: '/\d+\%\s*$/'
allow_failure: true
makedocs:
stage: create
only:
- tags
script:
- echo "soon"
deploydoc:
stage: deploy
only:
- tags
script:
- echo "soon"
maketag:
stage: create
only:
- tags
script:
- echo "soon"
deploytag:
stage: deploy
only:
- tags
script:
- echo "soon"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment