Enzor/travis build (#2287)

* removing the directive to remove the node_modules folder

* publishing from travis

* beta and major gets pushed to the beta channel. only major get tagged to latest, in a different job
This commit is contained in:
Enzo Rivello
2017-09-04 17:51:46 +01:00
committed by Mario Romano
parent 11cadbb01f
commit 0ff268108f
3 changed files with 39 additions and 0 deletions

6
scripts/last_beta_version.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
ADF_VERSION=$(npm view ng2-alfresco-core@beta version)
BETA_VERSION=( ${ADF_VERSION//-/ } )
echo ${BETA_VERSION[0]}

9
scripts/next_version.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
ADF_VERSION=$(npm view ng2-alfresco-core version)
NEXT_VERSION=( ${ADF_VERSION//./ } )
((NEXT_VERSION[1]++))
NEXT_VERSION[2]=0
NEXT_VERSION="${NEXT_VERSION[0]}.${NEXT_VERSION[1]}.${NEXT_VERSION[2]}"
echo $NEXT_VERSION