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
fbdb6a9e
Commit
fbdb6a9e
authored
6 years ago
by
Erwan Rouchet
Committed by
Bastien Abadie
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Split tests and linting in GitLab CI
parent
00c55049
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+29
-24
29 additions, 24 deletions
.gitlab-ci.yml
with
29 additions
and
24 deletions
.gitlab-ci.yml
+
29
−
24
View file @
fbdb6a9e
image
:
registry.gitlab.com/arkindex/backend:base-0.8.7
stages
:
-
test
b
ac
kend-tests
:
stage
:
test
image
:
registry.gitlab.com/arkindex/backend:base-0.8.7
c
ac
he
:
paths
:
-
.cache/pip
services
:
-
postgres:latest
before_script
:
-
apk --update add build-base
# Custom line to install our own deps from Git using GitLab CI credentials
-
"
pip
install
-e
git+https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/arkindex/common#egg=arkindex-common"
-
"
pip
install
-e
git+https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/arkindex/ponos#egg=arkindex-ponos"
-
pip install -r tests-requirements.txt codecov
variables
:
# For the postgres image
POSTGRES_DB
:
arkindex_dev
POSTGRES_USER
:
devuser
POSTGRES_PASSWORD
:
devdata
variables
:
# For the postgres image
POSTGRES_DB
:
arkindex_dev
POSTGRES_USER
:
devuser
POSTGRES_PASSWORD
:
devdata
# For the backend
DB_HOST
:
postgres
DB_PORT
:
5432
# For the backend
DB_HOST
:
postgres
DB_PORT
:
5432
# Pip cache
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
# Pip cache
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
cache
:
paths
:
-
.cache/pip
backend-tests
:
stage
:
test
before_script
:
-
apk --update add build-base
# Custom line to install our own deps from Git using GitLab CI credentials
-
"
pip
install
-e
git+https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/arkindex/common#egg=arkindex-common"
-
"
pip
install
-e
git+https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/arkindex/ponos#egg=arkindex-ponos"
-
pip install -r tests-requirements.txt codecov
services
:
-
postgres:latest
script
:
-
python setup.py test
-
codecov
backend-lint
:
stage
:
test
script
:
-
flake8
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