Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
web-openccg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ease-ph
DeepLanguageUnderstanding
web-openccg
Commits
5bc97302
Unverified
Commit
5bc97302
authored
6 years ago
by
Sebastian Höffner
Browse files
Options
Downloads
Patches
Plain Diff
Copying tests to /tests to circumvent docker-in-docker volume mounting.
parent
fe23181c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-0
1 addition, 0 deletions
Dockerfile
Jenkinsfile
+2
-2
2 additions, 2 deletions
Jenkinsfile
Makefile
+2
-2
2 additions, 2 deletions
Makefile
with
5 additions
and
4 deletions
Dockerfile
+
1
−
0
View file @
5bc97302
...
...
@@ -24,6 +24,7 @@ RUN curl -o openccg-0.9.5.tgz https://datapacket.dl.sourceforge.net/project/open
&& pip3 install flask uwsgi tatsu
COPY
app /app
COPY
tests /tests
# Run Flask app behind nginx
WORKDIR
/app
...
...
This diff is collapsed.
Click to expand it.
Jenkinsfile
+
2
−
2
View file @
5bc97302
...
...
@@ -4,13 +4,13 @@ pipeline {
stages
{
stage
(
'build'
)
{
steps
{
sh
'docker
-compose
build . -t web-openccg:$(git rev-parse --short HEAD)'
sh
'docker build . -t web-openccg:$(git rev-parse --short HEAD)'
}
}
stage
(
'test'
)
{
steps
{
sh
'docker
-compose -p litmus run --rm -v $(pwd)/tests:/tests openccg
python3 -m unittest discover /tests'
sh
'docker
run --rm web-openccg:$(git rev-parse --short HEAD)
python3 -m unittest discover /tests'
}
}
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
2
−
2
View file @
5bc97302
...
...
@@ -3,8 +3,8 @@ app/generated_openccg_parser.py: OpenCCG.ebnf
.PHONY
:
run
run
:
docker
-compose
run
--rm
-p
5000:5000
-v
$$(
pwd
)
/app:/app
openccg python3 /app/ccgapp.py
docker run
--rm
-p
5000:5000
-v
$$(
pwd
)
/app:/app
:ro web-
openccg python3 /app/ccgapp.py
.PHONY
:
test
test
:
docker
-compose
run
--rm
-v
$$(
pwd
)
/app:/app
-v
$$(
pwd
)
/tests:/tests
openccg python3
-m
unittest discover /tests
docker run
--rm
-v
$$(
pwd
)
/app:/app
:ro
-v
$$(
pwd
)
/tests:/tests
:ro web-
openccg python3
-m
unittest discover /tests
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