Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
web security map
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
131
Issues
131
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Internet Cleanup Foundation
web security map
Commits
b03704f1
Verified
Commit
b03704f1
authored
Oct 30, 2017
by
Johan Bloemberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test suite for build image.
parent
27ec7e25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
.gitlab-ci.yml
.gitlab-ci.yml
+18
-2
No files found.
.gitlab-ci.yml
View file @
b03704f1
...
...
@@ -129,9 +129,25 @@ test_build:
image
:
docker:git
script
:
# build docker image
without explicit tag
to test building
# build docker image to test building
-
docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
-
docker build .
-
docker build . -t testbuild
# run simple smoketests to verify Docker image is sane
-
docker run --name testbuild -p 8000:8000 -d testbuild runuwsgi
# setup database and implicitly test running commands
-
docker exec testbuild failmap-admin migrate
-
docker exec testbuild failmap-admin loaddata development
# index page
-
curl -s http://localhost:8000 |grep MSPAINT.EXE
# static files
-
curl -sI http://localhost:8000/static/images/red-dot.png |grep 200\ OK
# compressed static files
-
"
curl
-sI
http://localhost:8000/static/$(curl
-s
http://localhost:8000/static/CACHE/manifest.json|sed
-n
's,.*
\
(CACHE/js/.*js
\
).*,
\
1,p')|grep
200
\
OK"
# admin login
-
curl -si --cookie-jar cookie --cookie cookie http://localhost:8000/admin/login/|grep 200\ OK
-
curl -si --cookie-jar cookie --cookie cookie --data "csrfmiddlewaretoken=$(grep csrftoken cookie | cut -f 7)&username=admin&password=faalkaart" http://localhost:8000/admin/login/|grep 302\ Found
# run on MR
except
:
[
master
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment