mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
CI/CD allow a Travis cron job to create beta and update children proj… (#5033)
* CI/CD allow a Travis cron job to create beta and update children projects * Update build.sh
This commit is contained in:
committed by
Eugenio Romano
parent
24e1794fb9
commit
ac28b959ee
@@ -37,6 +37,8 @@ stages:
|
|||||||
if: type = pull_request
|
if: type = pull_request
|
||||||
- name: Update Children Projects
|
- name: Update Children Projects
|
||||||
if: branch = master AND type = push OR (tag =~ .*beta.*)
|
if: branch = master AND type = push OR (tag =~ .*beta.*)
|
||||||
|
- name: Release beta tag
|
||||||
|
if: type = cron
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
chrome: stable
|
chrome: stable
|
||||||
@@ -75,6 +77,9 @@ jobs:
|
|||||||
- stage: Update Children Projects
|
- stage: Update Children Projects
|
||||||
script: ./scripts/travis/update/update-children.sh
|
script: ./scripts/travis/update/update-children.sh
|
||||||
|
|
||||||
|
- stage: Release beta tag
|
||||||
|
script: ./scripts/travis/release/git-tag-beta.sh
|
||||||
|
|
||||||
|
|
||||||
- stage: e2e Test
|
- stage: e2e Test
|
||||||
name: core
|
name: core
|
||||||
|
@@ -14,7 +14,12 @@ then
|
|||||||
|
|
||||||
if [[ $TRAVIS_BRANCH == "development" ]];
|
if [[ $TRAVIS_BRANCH == "development" ]];
|
||||||
then
|
then
|
||||||
./scripts/update-version.sh -gnu -nextalpha || exit 1;
|
NEXT_VERSION=-nextalpha
|
||||||
|
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
|
||||||
|
then
|
||||||
|
NEXT_VERSION=-nextbeta
|
||||||
|
fi
|
||||||
|
./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
node ./scripts/pre-publish.js
|
node ./scripts/pre-publish.js
|
||||||
|
9
scripts/travis/release/git-tag-beta.sh
Executable file
9
scripts/travis/release/git-tag-beta.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
VERSION=$(npm view @alfresco/adf-core@beta version)
|
||||||
|
|
||||||
|
echo "git tag -a ${VERSION} -m ${VERSION}"
|
||||||
|
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
|
||||||
|
git remote rm origin
|
||||||
|
git remote add origin 'git@github.com:Alfresco/alfresco-ng2-components.git'
|
||||||
|
git push origin --tags
|
Reference in New Issue
Block a user