Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
minerva
core
Commits
8db6cc18
Commit
8db6cc18
authored
6 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
working but ugly ci script for backend tests
parent
388d7344
No related branches found
No related tags found
2 merge requests
!630
WIP: Resolve "The privileges of a new user are not saved in some cases"
,
!386
Resolve "Continous integration tests"
Pipeline
#6316
failed
6 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+12
-2
12 additions, 2 deletions
.gitlab-ci.yml
with
12 additions
and
2 deletions
.gitlab-ci.yml
+
12
−
2
View file @
8db6cc18
...
...
@@ -18,7 +18,7 @@ test_frontend:
-
npm test
test_backend
:
image
:
maven:
3.3-jdk-8
image
:
maven:
latest
services
:
-
postgres:latest
stage
:
test
...
...
@@ -30,9 +30,19 @@ test_backend:
-
export DISPLAY=:99
#connection to the db
-
mkdir /etc/minerva/
-
echo "database.uri=jdbc:postgresql://$POSTGRES_PORT_5432_TCP_ADDR:5432/map_viewer" >>/etc/minerva/test-db.properties
# - echo "database.uri=jdbc:postgresql://$POSTGRES_PORT_5432_TCP_ADDR:5432/map_viewer" >>/etc/minerva/test-db.properties
# - echo "database.username=map_viewer" >>/etc/minerva/test-db.properties
# - echo "database.password=123qweasdzxc">>/etc/minerva/test-db.properties
-
apt-get install -y postgresql sudo
-
apt-get install -y sudo
-
service postgresql start
-
sudo -u postgres createuser -s map_viewer
-
sudo -u postgres createdb map_viewer -O map_viewer
-
sudo -u postgres psql -c "ALTER USER map_viewer WITH PASSWORD '123qweasdzxc';"
-
echo "database.uri=jdbc:postgresql://127.0.0.1:5432/map_viewer" >>/etc/minerva/test-db.properties
-
echo "database.username=map_viewer" >>/etc/minerva/test-db.properties
-
echo "database.password=123qweasdzxc">>/etc/minerva/test-db.properties
-
mvn test
build_war
:
...
...
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