-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.cmd
More file actions
24 lines (19 loc) · 736 Bytes
/
debug.cmd
File metadata and controls
24 lines (19 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
setlocal
if "%CI_JOB_TOKEN%"=="" goto :err_set_token
set PIP_EXTRA_INDEX_URL=https://__token__:%CI_JOB_TOKEN%@gitlab.com/api/v4/projects/20511699/packages/pypi/simple
pip install .
if errorlevel 1 goto :eof
if "%FLASK_ENV%"=="" set FLASK_ENV=development
set FLASK_APP=app
start http://127.0.0.1:5000/
flask run
goto :eof
:err_set_token
echo You must have an environment variable named CI_JOB_TOKEN with a personal access token assigned to it.
echo.
echo To create a personal access token, log into gitlab.com and select your account settings. From there,
echo select Access Tokens and generate a personal access token. You will need to have read_api, read_repository
echo and read_registry permissions.
echo.
goto :eof