Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
retribute.me
webclient
Commits
7b021095
Verified
Commit
7b021095
authored
Jun 06, 2019
by
Eliot Berriot
Browse files
Added CI configuration
parent
45fa0e19
Pipeline
#4225
passed with stage
in 1 minute and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
7b021095
stages
:
-
test
-
deploy
pages
:
stage
:
test
image
:
node:latest
before_script
:
-
yarn install
script
:
-
yarn test:unit
cache
:
key
:
front_node_modules
paths
:
-
"
node_modules"
pages
:
stage
:
deploy
image
:
node:latest
before_script
:
-
yarn install
script
:
-
yarn build
-
rm -rf public
-
mv dist public
# ugly hack from https://gitlab.com/gitlab-org/gitlab-pages/issues/23#note_57499396
# until Gitlab Pages has better support for SPA
-
cp public/index.html public/404.html
# Gzip compression, cf https://webd97.de/post/gitlab-pages-compression/
-
gzip -k -6 $(find public -type f)
cache
:
key
:
front_node_modules
paths
:
-
"
node_modules"
artifacts
:
paths
:
-
public/
only
:
-
master@retribute.me/webclient
tags
:
-
docker
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment