Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
teknikattan-scoring-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tddd96-grupp1
teknikattan-scoring-system
Commits
92cf194e
Commit
92cf194e
authored
4 years ago
by
Victor Löfgren
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Improve gitlab pipelines"
parent
7b12fa89
No related branches found
No related tags found
1 merge request
!7
Resolve "Improve gitlab pipelines"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-3
2 additions, 3 deletions
.gitlab-ci.yml
.gitlab/client.gitlab-ci.yml
+18
-13
18 additions, 13 deletions
.gitlab/client.gitlab-ci.yml
.gitlab/server.gitlab-ci.yml
+17
-5
17 additions, 5 deletions
.gitlab/server.gitlab-ci.yml
with
37 additions
and
21 deletions
.gitlab-ci.yml
+
2
−
3
View file @
92cf194e
stages
:
-
server-test
-
client-install
-
client-test
-
setup
-
test
include
:
-
local
:
.gitlab/server.gitlab-ci.yml
...
...
This diff is collapsed.
Click to expand it.
.gitlab/client.gitlab-ci.yml
+
18
−
13
View file @
92cf194e
image
:
node:10
install
:
stage
:
client-install
client:setup
:
image
:
node:10
stage
:
setup
script
:
-
cd client
-
npm install
artifacts
:
name
:
"
artifacts"
untracked
:
true
expire_in
:
60 mins
expire_in
:
15 mins
paths
:
-
client/.npm/
-
client/node_modules/
cache
:
key
:
"
$CI_COMMIT_REF_SLUG"
paths
:
-
client/.npm/
-
client/node_modules/
linting
:
stage
:
client-test
client:linting
:
image
:
node:10
stage
:
test
needs
:
[
"
client:setup"
]
script
:
-
cd client
-
npm run lint
dependencies
:
-
install
test:unit
:
stage
:
client-test
client:test
:
image
:
node:10
stage
:
test
needs
:
[
"
client:setup"
]
script
:
-
cd client
-
npm run test:coverage
dependencies
:
-
install
coverage
:
/All files\s*\|\s*([\d\.]+)/
This diff is collapsed.
Click to expand it.
.gitlab/server.gitlab-ci.yml
+
17
−
5
View file @
92cf194e
test-server
:
server:setup
:
image
:
python
stage
:
setup
artifacts
:
paths
:
-
server/env
expire_in
:
15 min
untracked
:
true
cache
:
key
:
"
$CI_COMMIT_REF_SLUG"
paths
:
-
server/env/
stage
:
server-test
-
server/env
script
:
-
python --version
-
pip install virtualenv
...
...
@@ -13,4 +17,12 @@ test-server:
-
python -m venv env
-
source env/bin/activate
-
pip install -r requirements.txt
server:test
:
image
:
python
stage
:
test
needs
:
[
"
server:setup"
]
script
:
-
cd server
-
source env/bin/activate
-
pytest --cov app 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