Skip to content

Commit

Permalink
Apply new template to release pipeline (#1308)
Browse files Browse the repository at this point in the history
* Initial commit

* Minor changes

* Change cron schedule expression

* Remove old release page

* minor changes
  • Loading branch information
epassaro authored Oct 12, 2020
1 parent e0fce2e commit 4cee3b2
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 74 deletions.
66 changes: 26 additions & 40 deletions azure-pipelines/release-version.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,47 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
# For more information on how to use this pipeline please refer to:
# http://tardis-sn.github.io/tardis/development/continuous_integration.html

trigger: none
pr: none

schedules:
- cron: "30 22 * * 0"
displayName: Weekly build
- cron: '0 0 * * 0'
displayName: 'Weekly release'
branches:
include:
- master
always: true
always: false

variables:
system.debug: "true"
tardis.build.dir: $(Build.Repository.LocalPath)
system.debug: false

pool:
vmImage: "ubuntu-latest"
vmImage: 'ubuntu-latest'

jobs:
- job: gh_release
displayName: Upload GitHub release
steps:
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
displayName: "Add CONDA to path"
- bash: |
sh ci-helpers/install_tardis_env.sh
displayName: "Install TARDIS env"
- job: release
displayName: 'TARDIS release'

- bash: |
source activate tardis
python setup.py install
displayName: "Build & install TARDIS"
steps:
- template: templates/default.yml
parameters:
useMamba: true

- bash: |
cd $(tardis.dir)
source activate tardis
echo "##vso[task.setvariable variable=version]$(python -c 'import tardis; print(tardis.__version__)')"
displayName: "Get TARDIS version number"
- bash: |
echo $(VERSION)
displayName: "Recover TARDIS version number"
displayName: 'Get TARDIS version'
- task: GitHubRelease@1
inputs:
gitHubConnection: "wkerzendorf"
repositoryName: "$(Build.Repository.Name)"
action: "create"
target: "$(Build.SourceVersion)"
tagSource: "userSpecifiedTag"
tag: "v$(VERSION)"
title: "TARDIS v$(VERSION)"
isPreRelease: false
changeLogCompareToRelease: "lastFullRelease"
changeLogType: "commitBased"
gitHubConnection: 'wkerzendorf'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: 'v$(version)'
title: 'TARDIS v$(version)'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'
displayName: 'Create GitHub Release'
4 changes: 1 addition & 3 deletions docs/development/continuous_integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,7 @@ In the near future we want to auto-update the citation guidelines in the
Release pipeline
----------------

Publishes a new release of TARDIS every sunday at 22:30 UTC.

.. warning :: Fails if no new commits were merged since the last release.
Publishes a new release of TARDIS every sunday at 00:00 UTC.


Reference data pipeline
Expand Down
1 change: 0 additions & 1 deletion docs/development/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ to the Astropy team for designing it.
:maxdepth: 2
:caption: TARDIS core team instructions

release_workflow
update_refdata
continuous_integration
matterbridge
Expand Down
30 changes: 0 additions & 30 deletions docs/development/release_workflow.rst

This file was deleted.

0 comments on commit 4cee3b2

Please sign in to comment.