This repository was archived by the owner on Feb 28, 2020. It is now read-only.
File tree 5 files changed +13
-20
lines changed
5 files changed +13
-20
lines changed Original file line number Diff line number Diff line change 3
3
- oraclejdk8
4
4
before_install :
5
5
- wget http://services.gradle.org/distributions/gradle-3.5-bin.zip
6
+ - wget https://github.com/github/hub/releases/download/v2.2.9/hub-linux-386-2.2.9.tgz
6
7
- shasum -a 256 -c ./sha256.txt
7
8
- unzip -qq gradle-3.5-bin.zip
9
+ - tar -xvzf hub-linux-386-2.2.9.tgz
8
10
- export GRADLE_HOME=$PWD/gradle-3.5
9
- - export PATH=$GRADLE_HOME/bin:$PATH
11
+ - export PATH=$GRADLE_HOME/bin:$PWD/hub-linux-386-2.2.9/bin/:$ PATH
10
12
- gradle -v
11
13
- nvm install 6.9.1
12
14
- cd ./generator-java
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ if [[ $TRAVIS_PULL_REQUEST != "false" ]]; then
4
4
echo " PR detected, running all tests"
5
5
echo " Running linter"
6
6
npm run lint
7
+ retval=$?
7
8
if [ $retval != 0 ]; then
8
9
exit $retval
9
10
fi
Original file line number Diff line number Diff line change @@ -4,28 +4,17 @@ echo "Checking if a new publish cycle is required ..."
4
4
PKG_NAME=` node -e " console.log(require('./package.json').name);" `
5
5
PKG_VER=` node -e " console.log(require('./package.json').version);" `
6
6
NPM_VER=` npm show $PKG_NAME version --silent`
7
- CHECK_REG=$( curl https://registry.npmjs.org/$PKG_NAME )
8
- NOT_FOUND=$( node -e " console.log(Object.keys(JSON.parse(JSON.stringify($CHECK_REG ))).length)" )
9
7
10
8
echo " $PKG_NAME : version = $PKG_VER , npm version = $NPM_VER "
11
9
if [[ $TRAVIS_BRANCH == " master" ]]; then
12
10
echo " Build targetting master - checking if this is a PR or not"
13
11
if [[ $TRAVIS_PULL_REQUEST == " false" ]]; then
14
12
echo " This is a build on master, performing additional steps"
15
- if [ $NOT_FOUND == 0 ]; then
16
- echo " $PKG_NAME is not in public registry so going to publish"
17
- npm publish
18
- elif [[ $PKG_VER == $NPM_VER ]]; then
13
+ if [[ $PKG_VER == $NPM_VER ]]; then
19
14
echo " Version numbers match, so changing version and committing changes"
20
- npm run prerelease
21
- if [ $? == 0 ]; then
22
- # If you are running a protected master branch then you *could* disable re-running the tests
23
- echo " Tests passed, continuing release cycle"
24
- ../prerelease.sh
25
- if [ $? != 0 ]; then
26
- exit $?
27
- fi
28
- else
15
+ ../prerelease.sh
16
+ retval=$?
17
+ if [ $retval != 0 ]; then
29
18
exit $?
30
19
fi
31
20
else
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- echo " Running pre-release checks and scans"
3
2
echo " Determining current version"
4
3
CURRENT_PKG_VER_MAJOR=` node -e " console.log(require('./package.json').version.split('.')[0]);" `
5
4
CURRENT_PKG_VER_MINOR=` node -e " console.log(require('./package.json').version.split('.')[1]);" `
@@ -11,6 +10,10 @@ git config push.default simple
11
10
12
11
echo " Running smoke test"
13
12
npm run prerelease
13
+ retval=$?
14
+ if [ $retval != 0 ]; then
15
+ exit $retval
16
+ fi
14
17
echo " Upgrading using standard-version"
15
18
npm run release
16
19
retval=$?
@@ -27,9 +30,6 @@ NEXT_PKG_VER_FIX=`node -e "console.log(require('./package.json').version.split('
27
30
echo " Creating git branch"
28
31
BRANCH=" updateTo${PKG_VER_NEXT} "
29
32
git checkout -b $BRANCH
30
-
31
- git status
32
- git commit -m " Update test coverage and code scan files"
33
33
# this pull request through this branch will be needed to be reviewed as usual
34
34
git remote rm origin
35
35
git remote add origin $GITHUB_URL_SECURED
Original file line number Diff line number Diff line change 1
1
0b7450798c190ff76b9f9a3d02e18b33d94553f708ebc08ebe09bdf99111d110 gradle-3.5-bin.zip
2
+ 353772dbf336bea3cb09547a943281e317956021d853e4e3383871b2cd85a475 hub-linux-386-2.2.9.tgz
You can’t perform that action at this time.
0 commit comments