Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
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
dCache
cta
Commits
cb86612d
Commit
cb86612d
authored
5 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Added CI job dbunittests_mysql to .gitlab-ci.yml
parent
77ff4428
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+34
-0
34 additions, 0 deletions
.gitlab-ci.yml
with
34 additions
and
0 deletions
.gitlab-ci.yml
+
34
−
0
View file @
cb86612d
...
...
@@ -163,6 +163,40 @@ dbunittests_postgresql:
tags
:
-
docker
dbunittests_mysql
:
except
:
-
tags
stage
:
test
variables
:
CTAREPODIR
:
/tmp/repo
image
:
gitlab-registry.cern.ch/linuxsupport/cc7-base
script
:
-
cp -f continuousintegration/docker/ctafrontend/cc7/etc/yum.repos.d/* /etc/yum.repos.d/
-
yum -y install yum-plugin-priorities createrepo
-
cp -f continuousintegration/docker/ctafrontend/cc7/etc/yum/pluginconf.d/versionlock.list /etc/yum/pluginconf.d/
-
mkdir -p ${CTAREPODIR}; cp -r build_rpm/RPM ${CTAREPODIR}
-
createrepo ${CTAREPODIR}; echo -e "[cta-artifacts]\nname=CTA artifacts\nbaseurl=file://${CTAREPODIR}\ngpgcheck=0\nenabled=1\npriority=2" > /etc/yum.repos.d/cta-artifacts.repo
-
yum -y --nogpgcheck install cta-systemtests cta-debuginfo sqlite-debuginfo --enablerepo=debug
-
yum -y install cta-catalogueutils
-
yum -y install lsof mariadb-server
-
echo '[mariadb]' > /etc/my.cnf.d/cta_server_listen.cnf
-
echo 'bind-address=localhost' >> /etc/my.cnf.d/cta_server_listen.cnf
-
mysql_install_db --user=mysql
-
/usr/bin/mysqld_safe > /dev/null 2>&1 < /dev/null &
-
sleep
5
-
echo 'create database cta;' | mysql
-
echo 'create user cta;' | mysql
-
echo 'grant all privileges on *.* to cta@localhost' | mysql
-
CTA_CATALOGUE_CONF=/etc/cta/cta-catalogue.conf
-
echo CTA_CATALOGUE_CONF=${CTA_CATALOGUE_CONF}
-
echo 'mysql://cta@localhost:3306/cta' > ${CTA_CATALOGUE_CONF}
-
/usr/bin/cta-catalogue-schema-create ${CTA_CATALOGUE_CONF}
-
/usr/bin/cta-rdbmsUnitTests ${CTA_CATALOGUE_CONF}
-
kill `ps -ef | egrep '^mysql.*/usr/libexec/mysqld' | awk '{print $2;}'`
tags
:
-
docker
ctageneric_docker
:
except
:
-
tags
...
...
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