Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Joseph Weston
kwant
Commits
417b887d
Commit
417b887d
authored
8 years ago
by
Anton Akhmerov
Browse files
Options
Downloads
Patches
Plain Diff
setup environments, ensure unique urls for branch docs
parent
819abe25
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
+37
-4
37 additions, 4 deletions
.gitlab-ci.yml
with
37 additions
and
4 deletions
.gitlab-ci.yml
+
37
−
4
View file @
417b887d
...
@@ -80,36 +80,69 @@ upload coverage:
...
@@ -80,36 +80,69 @@ upload coverage:
-
mkdir -p ~/.ssh && ssh-keyscan kwant-project.org >> ~/.ssh/known_hosts
-
mkdir -p ~/.ssh && ssh-keyscan kwant-project.org >> ~/.ssh/known_hosts
-
echo $MASTER_WEBSITE_KEY | base64 -d > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
-
echo $MASTER_WEBSITE_KEY | base64 -d > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
script
:
script
:
-
rsync -rlv --delete htmlcov/* kwant@kwant-project.org:coverage/$CI_BUILD_REF_SLUG
-
mv htmlcov $CI_BUILD_REF_SLUG
-
rsync -rlv --delete --relative $CI_BUILD_REF_SLUG kwant@kwant-project.org:coverage/
after_script
:
after_script
:
-
rm -rf ~/.ssh
-
rm -rf ~/.ssh
upload documentation to the test server
:
upload documentation to the test server
:
stage
:
deploy
stage
:
deploy
environment
:
name
:
docs review/$CI_BUILD_REF_NAME
url
:
https://test.kwant-project.org/doc/$CI_BUILD_REF_SLUG
on_stop
:
remove_docs
only
:
only
:
-
branches@kwant/kwant
-
branches@kwant/kwant
before_script
:
-
mkdir -p ~/.ssh && ssh-keyscan kwant-project.org >> ~/.ssh/known_hosts
-
echo $TEST_WEBSITE_KEY | base64 -d > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
script
:
script
:
-
rsync -rlv --delete doc/build/html/* kwant@kwant-project.org:doc/$CI_BUILD_REF_SLUG
after_script
:
-
rm -rf ~/.ssh
remove_docs
:
stage
:
deploy
when
:
manual
environment
:
name
:
docs review/$CI_BUILD_REF_NAME
action
:
stop
before_script
:
-
mkdir -p ~/.ssh && ssh-keyscan kwant-project.org >> ~/.ssh/known_hosts
-
mkdir -p ~/.ssh && ssh-keyscan kwant-project.org >> ~/.ssh/known_hosts
-
echo $TEST_WEBSITE_KEY | base64 -d > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
-
echo $TEST_WEBSITE_KEY | base64 -d > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
-
rsync -rlv --delete doc/build/html/* kwant@kwant-project.org:doc/dev
script
:
-
mkdir empty
-
rsync -arv --delete empty/ kwant@kwant-project.org:doc/$CI_BUILD_REF_SLUG/
after_script
:
-
rm -rf ~/.ssh
-
rm -rf ~/.ssh
upload dev version docs
:
upload dev version docs
:
stage
:
deploy
stage
:
deploy
environment
:
name
:
production
url
:
https://kwant-project.org/doc/dev
only
:
only
:
-
master@kwant/kwant
-
master@kwant/kwant
script
:
before_
script
:
-
mkdir -p ~/.ssh && ssh-keyscan kwant-project.org >> ~/.ssh/known_hosts
-
mkdir -p ~/.ssh && ssh-keyscan kwant-project.org >> ~/.ssh/known_hosts
-
echo $MASTER_WEBSITE_KEY | base64 -d > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
-
echo $MASTER_WEBSITE_KEY | base64 -d > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
script
:
-
rsync -rlv --delete doc/build/html/* kwant@kwant-project.org:doc/dev
-
rsync -rlv --delete doc/build/html/* kwant@kwant-project.org:doc/dev
after_script
:
-
rm -rf ~/.ssh
-
rm -rf ~/.ssh
upload docs of tagged build
:
upload docs of tagged build
:
stage
:
deploy
stage
:
deploy
environment
:
name
:
production
only
:
only
:
-
/^v[0-9]+\.[0-9]+.[0-9]+$/@kwant/kwant
-
/^v[0-9]+\.[0-9]+.[0-9]+$/@kwant/kwant
script
:
before_
script
:
-
mkdir -p ~/.ssh && ssh-keyscan kwant-project.org >> ~/.ssh/known_hosts
-
mkdir -p ~/.ssh && ssh-keyscan kwant-project.org >> ~/.ssh/known_hosts
-
echo $MASTER_WEBSITE_KEY | base64 -d > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
-
echo $MASTER_WEBSITE_KEY | base64 -d > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
script
:
-
rsync -rlv --delete doc/build/html/* kwant@kwant-project.org:doc/$(echo $CI_BUILD_TAG | sed 's/v\([0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/')
-
rsync -rlv --delete doc/build/html/* kwant@kwant-project.org:doc/$(echo $CI_BUILD_TAG | sed 's/v\([0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/')
after_script
:
-
rm -rf ~/.ssh
-
rm -rf ~/.ssh
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