6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2025-01-07 16:04:02 +00:00

Introduce the concept of "nightly" release

This commit is contained in:
Régis Behmo 2019-03-21 22:51:35 +01:00
parent 604093217f
commit 949761aa29
3 changed files with 12 additions and 7 deletions

View File

@ -52,7 +52,7 @@ deploy:
skip_cleanup: true skip_cleanup: true
on: on:
tags: true tags: true
condition: $BUILD_DOCKER = true && $TRAVIS_TAG != "latest" condition: $BUILD_DOCKER = true && $TRAVIS_TAG != "latest" && $TRAVIS_TAG != "nightly"
# Push to pypi # Push to pypi
- provider: script - provider: script
@ -60,4 +60,4 @@ deploy:
skip_cleanup: true skip_cleanup: true
on: on:
tags: true tags: true
condition: $BUILD_PYPI = true && $TRAVIS_TAG != "latest" condition: $BUILD_PYPI = true && $TRAVIS_TAG != "latest" && $TRAVIS_TAG != "nightly"

View File

@ -14,11 +14,14 @@ bundle: ## Bundle the tutor package in a single "dist/tutor" executable
dist/tutor: dist/tutor:
$(MAKE) bundle $(MAKE) bundle
tag: ## Create a release, update the "latest" tag and push them to origin nightly: ## Create a "nightly" release
$(MAKE) retag TAG=v$(shell make version) $(MAKE) tag TAG=nightly
$(MAKE) retag TAG=latest
retag: release: ## Create a release, update the "latest" tag and push them to origin
$(MAKE) tag TAG=v$(shell make version)
$(MAKE) tag TAG=latest
tag:
@echo "=== Creating tag $(TAG)" @echo "=== Creating tag $(TAG)"
git tag -d $(TAG) || true git tag -d $(TAG) || true
git tag $(TAG) git tag $(TAG)

View File

@ -42,4 +42,6 @@ Releasing a new version
- Replace "Latest" by the version name in CHANGELOG.md. - Replace "Latest" by the version name in CHANGELOG.md.
- Create a commit with the version changelog. - Create a commit with the version changelog.
- ``git push`` - ``git push``
- ``make tag`` - ``make release``
After a regular push to ``master``, run ``make nightly`` to update the "nightly" tag.