File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ var modules = Module.getUpdated();
5151
5252if ( ! modules . length && ! ci . isReleaseBuild ( ) ) {
5353 echo ( 'No code changes found, exiting early.' ) ;
54- exit ( ) ;
54+ exit ( 1 ) ;
5555}
5656
5757Module . buildDocs ( ) ;
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- set -e
18-
1917rebuild () {
2018 for dir in packages/* ; do
2119 test -d " $dir " || continue
@@ -44,7 +42,15 @@ npm install
4442npm run lint
4543node ./scripts/build.js
4644
47- export COVERALLS_REPO_TOKEN=" kEhKxvu3L9Z4GiClA9LcKYk7G9i9dl83k"
45+ if [ " $? " == " 1" ]
46+ then
47+ # No code changes. Exit early.
48+ set -e
49+ exit 0
50+ set +e
51+ fi
52+
53+ export COVERALLS_REPO_TOKEN=" vKZ7a3PpW0lRBRWC12dPw2EiZE5ml962J"
4854export CIRCLE_ARTIFACTS=" $( pwd) /.coverage"
4955npm run postinstall # installs all modules
5056npm run coveralls
@@ -63,5 +69,3 @@ nvm install v8 && nvm use v8
6369rebuild
6470npm run lint
6571node ./scripts/build.js
66-
67- set +e
You can’t perform that action at this time.
0 commit comments