aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-05-03 17:15:16 +0530
committerLibravatar GitHub <noreply@github.com>2021-05-03 11:45:16 +0000
commite1ab7202cd678ca986f7aeb95861709be59e0a2e (patch)
tree57e648a71f37a2203f2598fa66dc1efc5a2703ff /.travis.yml
parentNew Crowdin updates (#1336) (diff)
downloadferdium-app-e1ab7202cd678ca986f7aeb95861709be59e0a2e.tar.gz
ferdium-app-e1ab7202cd678ca986f7aeb95861709be59e0a2e.tar.zst
ferdium-app-e1ab7202cd678ca986f7aeb95861709be59e0a2e.zip
Added more logging for CI builds to debug errors (#1329)
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 10 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 0d818e995..b7cd25117 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,6 +16,8 @@ matrix:
16 osx_image: xcode12 16 osx_image: xcode12
17 17
18language: node_js 18language: node_js
19node_js:
20 - 14
19git: 21git:
20 submodules: false 22 submodules: false
21branches: 23branches:
@@ -33,15 +35,18 @@ before_install:
33 git fetch source 35 git fetch source
34 git merge --no-ff --commit -m "Merge remote-tracking branch 'source/develop' into HEAD [skip ci]" source/develop 36 git merge --no-ff --commit -m "Merge remote-tracking branch 'source/develop' into HEAD [skip ci]" source/develop
35 CHANGES_COUNT=$(git diff --stat HEAD origin/nightly | wc -l) 37 CHANGES_COUNT=$(git diff --stat HEAD origin/nightly | wc -l)
36 echo $TRAVIS_EVENT_TYPE 38 echo "Travis event type: $TRAVIS_EVENT_TYPE"
37 echo $changes 39 echo "Number of changes: $CHANGES_COUNT"
38 if [ $CHANGES_COUNT -eq 0 -a $TRAVIS_EVENT_TYPE == "cron" ]; then 40 if [ $CHANGES_COUNT -eq 0 -a $TRAVIS_EVENT_TYPE == "cron" ]; then
39 travis_terminate 0; 41 echo "Terminating the build since there are no changes in a cron-triggered build"
42 travis_terminate 0
40 else 43 else
44 echo "Found changes, proceeding with submodule updates"
41 git submodule update --remote --force 45 git submodule update --remote --force
42 git add . 46 git add .
43 git commit -m "Update submodules [skip ci]" || true 47 git commit -m "Update submodules [skip ci]" || true
44 fi 48 fi
49 echo "Completed merging from develop branch and upgrading submodules"
45 fi 50 fi
46install: 51install:
47 - cd recipes && npm install && npm run package && cd .. 52 - cd recipes && npm install && npm run package && cd ..
@@ -52,7 +57,7 @@ before_script:
52script: 57script:
53 - | 58 - |
54 if [ $TRAVIS_BRANCH == "release" ]; then 59 if [ $TRAVIS_BRANCH == "release" ]; then
55 echo "Building..." 60 echo "Building for release..."
56 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 61 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
57 fi 62 fi
58 - | 63 - |
@@ -60,7 +65,7 @@ script:
60 git add . 65 git add .
61 git commit -m "Apply linter fixes [skip ci]" 66 git commit -m "Apply linter fixes [skip ci]"
62 npm version prerelease --preid=nightly -m "%s and trigger AppVeyor nightly build [skip travisci]" 67 npm version prerelease --preid=nightly -m "%s and trigger AppVeyor nightly build [skip travisci]"
63 echo "Building..." 68 echo "Building for nightly..."
64 travis_retry travis_wait 100 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=nightlies 69 travis_retry travis_wait 100 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=nightlies
65 if [ $TRAVIS_OS_NAME == "osx" ]; then 70 if [ $TRAVIS_OS_NAME == "osx" ]; then
66 git remote add nightly https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1 71 git remote add nightly https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1