Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale_OLD
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
jovuit
funkwhale_OLD
Commits
31d8df73
Verified
Commit
31d8df73
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Review app for docs
parent
7d60155b
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
+53
-9
53 additions, 9 deletions
.gitlab-ci.yml
with
53 additions
and
9 deletions
.gitlab-ci.yml
+
53
−
9
View file @
31d8df73
...
...
@@ -13,7 +13,7 @@ stages:
-
build
-
deploy
review
:
review
_front
:
stage
:
review
image
:
node:9
when
:
manual
...
...
@@ -25,31 +25,71 @@ review:
# this is to ensure we don't have any errors in the output,
# cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169
-
INSTANCE_URL=$REVIEW_INSTANCE_URL yarn run build | tee /dev/stderr | (! grep -i 'ERROR in')
-
mkdir -p /static/$CI_BUILD_REF_SLUG
-
cp -r dist/* /static/$CI_BUILD_REF_SLUG
-
mkdir -p /static/
front/
$CI_BUILD_REF_SLUG
-
cp -r dist/* /static/
front/
$CI_BUILD_REF_SLUG
cache
:
key
:
"
$CI_PROJECT_ID__front_dependencies"
paths
:
-
front/node_modules
-
front/yarn.lock
environment
:
name
:
review/$CI_BUILD_REF_NAME
url
:
http://$CI_BUILD_REF_SLUG.$REVIEW_DOMAIN
on_stop
:
stop_review
name
:
review/
front-
$CI_BUILD_REF_NAME
url
:
http://
front-
$CI_BUILD_REF_SLUG.$REVIEW_DOMAIN
on_stop
:
stop_
front_
review
only
:
-
branches@funkwhale/funkwhale
tags
:
-
funkwhale-review
stop_review
:
stop_
front_
review
:
stage
:
review
script
:
-
rm -rf /static/$CI_BUILD_REF_SLUG/
-
rm -rf /static/
front/
$CI_BUILD_REF_SLUG/
variables
:
GIT_STRATEGY
:
none
when
:
manual
environment
:
name
:
review/$CI_BUILD_REF_NAME
name
:
review/front-$CI_BUILD_REF_NAME
action
:
stop
tags
:
-
funkwhale-review
review_docs
:
stage
:
review
image
:
python:3.6
when
:
manual
allow_failure
:
true
variables
:
BUILD_PATH
:
"
../public"
before_script
:
-
cd docs
cache
:
key
:
"
$CI_PROJECT_ID__sphinx"
paths
:
-
"
$PIP_CACHE_DIR"
script
:
-
pip install sphinx
-
./build_docs.sh
-
mkdir -p /static/docs/$CI_BUILD_REF_SLUG
-
cp -r $CI_PROJECT_DIR/public/* /static/docs/$CI_BUILD_REF_SLUG
environment
:
name
:
review/docs-$CI_BUILD_REF_NAME
url
:
http://docs-$CI_BUILD_REF_SLUG.$REVIEW_DOMAIN
on_stop
:
stop_docs_review
only
:
-
branches@funkwhale/funkwhale
tags
:
-
funkwhale-review
stop_docs_review
:
stage
:
review
script
:
-
rm -rf /static/docs/$CI_BUILD_REF_SLUG/
variables
:
GIT_STRATEGY
:
none
when
:
manual
environment
:
name
:
review/docs-$CI_BUILD_REF_NAME
action
:
stop
tags
:
-
funkwhale-review
...
...
@@ -168,6 +208,10 @@ pages:
script
:
-
pip install sphinx
-
./build_docs.sh
cache
:
key
:
"
$CI_PROJECT_ID__sphinx"
paths
:
-
"
$PIP_CACHE_DIR"
artifacts
:
paths
:
-
public
...
...
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