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
2226d2c6
Commit
2226d2c6
authored
7 years ago
by
Joseph Weston
Browse files
Options
Downloads
Patches
Plain Diff
add CI stages to prepare tagged releases
parent
d234e993
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+19
-12
19 additions, 12 deletions
.gitlab-ci.yml
with
19 additions
and
12 deletions
.gitlab-ci.yml
+
19
−
12
View file @
2226d2c6
...
@@ -4,6 +4,7 @@ stages:
...
@@ -4,6 +4,7 @@ stages:
-
build
-
build
-
test
-
test
-
deploy
-
deploy
-
release
variables
:
variables
:
# rsync is used to send documentation to our web servers: we never send any
# rsync is used to send documentation to our web servers: we never send any
...
@@ -120,6 +121,7 @@ build and upload conda package (manual):
...
@@ -120,6 +121,7 @@ build and upload conda package (manual):
<<
:
*conda_job
<<
:
*conda_job
except
:
except
:
-
master
-
master
-
/^v[0-9]+\.[0-9]+.[0-9]+$/@kwant/kwant
when
:
manual
when
:
manual
...
@@ -209,17 +211,22 @@ upload dev version docs:
...
@@ -209,17 +211,22 @@ upload dev version docs:
after_script
:
after_script
:
-
rm -rf ~/.ssh
-
rm -rf ~/.ssh
# tagged version deploy
upload docs of tagged build
:
.tagged-version
:
&tagged_version
stage
:
deploy
only
:
environment
:
-
/^v[0-9]+\.[0-9]+.[0-9]+$/@kwant/kwant
name
:
production
only
:
gather release artifacts
:
-
/^v[0-9]+\.[0-9]+.[0-9]+$/@kwant/kwant
<<
:
*tagged_version
before_script
:
stage
:
release
-
mkdir -p ~/.ssh
-
echo $MASTER_WEBSITE_KEY | base64 -d > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
script
:
script
:
-
rsync -rlv -e "$IGNORE_HOSTKEY" --delete doc/build/html/* kwant@kwant-project.org:doc/$(echo $CI_BUILD_TAG | sed 's/v\([0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/')
-
./setup.py sdist
after_script
:
-
mkdir docs
-
rm -rf ~/.ssh
-
mv doc/build/latex/kwant.pdf docs/kwant-doc-${CI_COMMIT_TAG//v}.pdf
-
mv doc/build/html docs/html
-
zip -r docs/kwant-doc-${CI_COMMIT_TAG//v}.zip docs/html
artifacts
:
paths
:
-
docs
-
dist
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