aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-05-05 15:17:54 +0530
committerLibravatar GitHub <noreply@github.com>2021-05-05 09:47:54 +0000
commit9380bfbf50e36ab1116590ef36a28c3fcb1a95e6 (patch)
tree4ae40baa2e6932962f854697eed4771cb30af98e /.travis.yml
parentFix typo in Login.js (#1348) (diff)
downloadferdium-app-9380bfbf50e36ab1116590ef36a28c3fcb1a95e6.tar.gz
ferdium-app-9380bfbf50e36ab1116590ef36a28c3fcb1a95e6.tar.zst
ferdium-app-9380bfbf50e36ab1116590ef36a28c3fcb1a95e6.zip
Logging for nightly build + terminate build on error (#1347)
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml18
1 files changed, 10 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index ca2532395..5fbd8f1a7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -55,24 +55,26 @@ before_install:
55 echo "Completed merging from develop branch and upgrading submodules" 55 echo "Completed merging from develop branch and upgrading submodules"
56 fi 56 fi
57install: 57install:
58 - cd recipes && npm install && npm run package && cd .. 58 - cd recipes && npm install && npm run package && cd .. || travis_terminate 1
59 - travis_retry npx lerna bootstrap 59 - travis_retry npx lerna bootstrap || travis_terminate 1
60 - travis_retry npm install node-sass -g 60 - travis_retry npm install node-sass -g || travis_terminate 1
61before_script: 61before_script:
62 - npm run lint && npm run test 62 - npm run lint && npm run test || travis_terminate 1
63 - rm -rf build out 63 - echo $pwd
64 - chown -R `whoami` .
65 - rm -rfv ./build ./out
64script: 66script:
65 - | 67 - |
66 if [ $TRAVIS_BRANCH == "release" ]; then 68 if [ $TRAVIS_BRANCH == "release" ]; then
67 echo "Building for release..." 69 echo "Building for release..."
68 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 70 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
69 fi 71 fi
70 - | 72 - |
71 if [ $TRAVIS_BRANCH == "nightly" ]; then 73 if [ $TRAVIS_BRANCH == "nightly" ]; then
72 git commit -am "Apply linter fixes [skip ci]" 74 git commit -am "Apply linter fixes [skip ci]"
73 npm version prerelease --preid=nightly -m "%s and trigger AppVeyor nightly build [skip travisci]" 75 npm version prerelease --preid=nightly -m "%s and trigger AppVeyor nightly build [skip travisci]" || travis_terminate 1
74 echo "Building for nightly..." 76 echo "Building for nightly..."
75 travis_retry travis_wait 100 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=nightlies 77 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
76 if [ $TRAVIS_OS_NAME == "osx" ]; then 78 if [ $TRAVIS_OS_NAME == "osx" ]; then
77 git remote add nightly https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1 79 git remote add nightly https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1
78 git push -qu nightly HEAD:nightly >/dev/null 2>&1 80 git push -qu nightly HEAD:nightly >/dev/null 2>&1