Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
487db2c4
Verified
Commit
487db2c4
authored
4 years ago
by
Erwan Rouchet
Browse files
Options
Downloads
Patches
Plain Diff
Add make api-schema command
parent
3f87ce89
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!758
Add make api-schema command
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+5
-1
5 additions, 1 deletion
Makefile
with
5 additions
and
1 deletion
Makefile
+
5
−
1
View file @
487db2c4
ROOT_DIR
:=
$(
shell
dirname
$(
realpath
$(
lastword
$(
MAKEFILE_LIST
))))
PONOS_BRANCH
=
master
COMMON_BRANCH
=
master
IMAGE_TAG
=
registry.gitlab.com/arkindex/backend
API_CLIENT_PATH
=
../api-client
.PHONY
:
all
all
:
clean build
...
...
@@ -37,6 +38,9 @@ test-fixtures-restore:
psql
-h
127.0.0.1
-p
9100
-U
devuser
-c
'DROP DATABASE arkindex_dev'
template1
psql
-h
127.0.0.1
-p
9100
-U
devuser
-c
'ALTER DATABASE arkindex_dev_replace RENAME TO arkindex_dev'
template1
api-schema
:
arkindex/manage.py generateschema
--generator_class
arkindex.project.openapi.SchemaGenerator
>
$(
API_CLIENT_PATH
)
/arkindex/schema.yml
require-version
:
@
if
[
!
"
$(
version
)
"
]
;
then
echo
"Missing version to publish"
;
exit
1
;
fi
@
git rev-parse
$(
version
)
>
/dev/null 2>&1
&&
(
echo
"Version
$(
version
)
already exists on local git repo !"
&&
exit
1
)
||
true
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