Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
KSZK
DevTeam
kszkepzes
old
kszkepzes-backend
Commits
5e9f023e
"README.md" did not exist on "79dcf8dca2f37c2de996ea24c0f2bdf90b98be6c"
Commit
5e9f023e
authored
4 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
remove testing and prescript
parent
205f8163
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#5916
passed
4 years ago
Stage: Docker Build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+24
-21
24 additions, 21 deletions
.gitlab-ci.yml
with
24 additions
and
21 deletions
.gitlab-ci.yml
+
24
−
21
View file @
5e9f023e
...
@@ -13,38 +13,41 @@ cache:
...
@@ -13,38 +13,41 @@ cache:
-
.cache/pip
-
.cache/pip
-
env/
-
env/
before_script
:
-
python -V
-
python3 -m venv env
-
source env/bin/activate
-
pip install -r requirements/production.txt
stages
:
stages
:
-
Build
-
Test and Flake8
-
Docker Build
-
Docker Build
Flake8
:
Flake8
:
stage
:
Build
stage
:
Test and Flake8
only
:
only
:
-
dev
-
dev
-
master
-
master
tags
:
[
docker
]
tags
:
[
docker
]
script
:
script
:
-
python -V
-
python3 -m venv env
-
source env/bin/activate
-
pip install -r requirements/production.txt
-
flake8 --max-line-length=125 --exclude=src/kszkepzes,migrations,env
-
flake8 --max-line-length=125 --exclude=src/kszkepzes,migrations,env
Test
:
# TODO write tests
stage
:
Build
# Test:
only
:
# stage: Test and Flake8
-
dev
# only:
-
master
# - dev
tags
:
[
docker
]
# - master
variables
:
# tags: [docker]
DATABASE_URL
:
'
postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB'
# variables:
SECRET_KEY
:
'
secret'
# DATABASE_URL: 'postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB'
AUTHSCH_KEY
:
'
secret'
# SECRET_KEY: 'secret'
AUTHSCH_SECRET
:
'
secret'
# AUTHSCH_KEY: 'secret'
script
:
# AUTHSCH_SECRET: 'secret'
-
python src/manage.py test
# script:
# - python -V
# - python3 -m venv env
# - source env/bin/activate
# - pip install -r requirements/production.txt
# - python src/manage.py test
Docker build
:
Docker build
:
stage
:
Docker Build
stage
:
Docker Build
...
...
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