From 9380bfbf50e36ab1116590ef36a28c3fcb1a95e6 Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Wed, 5 May 2021 15:17:54 +0530 Subject: Logging for nightly build + terminate build on error (#1347) --- .travis.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index ca2532395..5fbd8f1a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,24 +55,26 @@ before_install: echo "Completed merging from develop branch and upgrading submodules" fi install: - - cd recipes && npm install && npm run package && cd .. - - travis_retry npx lerna bootstrap - - travis_retry npm install node-sass -g + - cd recipes && npm install && npm run package && cd .. || travis_terminate 1 + - travis_retry npx lerna bootstrap || travis_terminate 1 + - travis_retry npm install node-sass -g || travis_terminate 1 before_script: - - npm run lint && npm run test - - rm -rf build out + - npm run lint && npm run test || travis_terminate 1 + - echo $pwd + - chown -R `whoami` . + - rm -rfv ./build ./out script: - | if [ $TRAVIS_BRANCH == "release" ]; then echo "Building for release..." - travis_retry travis_wait 100 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=ferdi -c.mac.identity=null + travis_retry travis_wait 100 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=ferdi -c.mac.identity=null || travis_terminate 1 fi - | if [ $TRAVIS_BRANCH == "nightly" ]; then git commit -am "Apply linter fixes [skip ci]" - npm version prerelease --preid=nightly -m "%s and trigger AppVeyor nightly build [skip travisci]" + npm version prerelease --preid=nightly -m "%s and trigger AppVeyor nightly build [skip travisci]" || travis_terminate 1 echo "Building for nightly..." - travis_retry travis_wait 100 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=nightlies + travis_retry travis_wait 100 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=nightlies || travis_terminate 1 if [ $TRAVIS_OS_NAME == "osx" ]; then git remote add nightly https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1 git push -qu nightly HEAD:nightly >/dev/null 2>&1 -- cgit v1.2.3-54-g00ecf