Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DatabaseTest
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Sindre Thomassen
DatabaseTest
Commits
916f38ba
Commit
916f38ba
authored
6 years ago
by
nilstes
Browse files
Options
Downloads
Patches
Plain Diff
added service mysql
parent
c95f05d3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+18
-0
18 additions, 0 deletions
.gitlab-ci.yml
create_tables.sql
+7
-0
7 additions, 0 deletions
create_tables.sql
with
25 additions
and
0 deletions
.gitlab-ci.yml
+
18
−
0
View file @
916f38ba
image
:
node:6
# Install node libraries
before_script
:
-
npm install
# Run JEST tests
test
:
script
:
-
npm test
# Publish coverage report on gitlab-pages
pages
:
stage
:
deploy
script
:
...
...
@@ -18,3 +21,18 @@ pages:
-
public
only
:
-
master
# Set up MySQL test-database
services
:
-
mysql:latest
# Configure test-database
variables
:
MYSQL_DATABASE
:
db
MYSQL_ROOT_PASSWORD
:
password
# Create database tables
connect
:
image
:
mysql
script
:
-
echo "SELECT 'OK';" | mysql --user=root --password="$MYSQL_ROOT_PASSWORD" --host=mysql "$MYSQL_DATABASE" < create_tables.sql
This diff is collapsed.
Click to expand it.
create_tables.sql
0 → 100644
+
7
−
0
View file @
916f38ba
CREATE
TABLE
`person`
(
`id`
int
(
11
)
NOT
NULL
,
`navn`
varchar
(
256
)
NOT
NULL
,
`alder`
int
(
3
)
DEFAULT
NULL
,
`adresse`
varchar
(
256
)
NOT
NULL
,
`bilde_base64`
longtext
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
\ No newline at end of file
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