aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorLibravatar Amine Mouafik <amine@mouafik.fr>2020-10-04 13:02:56 +0100
committerLibravatar Amine Mouafik <amine@mouafik.fr>2020-10-04 13:02:56 +0100
commit9eb881b6edc3d2eca152390559cc68d6e61ee102 (patch)
treec10961a0b2978245c68f096dfeed4ff1365f482c /.travis.yml
parentFix macOS code signing and setup automatic nightly builds (#990) (diff)
downloadferdium-app-9eb881b6edc3d2eca152390559cc68d6e61ee102.tar.gz
ferdium-app-9eb881b6edc3d2eca152390559cc68d6e61ee102.tar.zst
ferdium-app-9eb881b6edc3d2eca152390559cc68d6e61ee102.zip
Fine-tune nightly releases scripts
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml10
1 files changed, 7 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 43e7fda20..56fc094e4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -32,13 +32,15 @@ before_install:
32 git remote add source https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1 32 git remote add source https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1
33 git fetch source 33 git fetch source
34 git merge --no-ff --commit --no-edit source/develop 34 git merge --no-ff --commit --no-edit source/develop
35 changes=$(git diff --stat HEAD origin/nightly | wc -l) 35 CHANGES_COUNT=$(git diff --stat HEAD origin/nightly | wc -l)
36 if [ $changes -eq 0 ]; then 36 echo $TRAVIS_EVENT_TYPE
37 echo $changes
38 if [ $CHANGES_COUNT -eq 0 -a $TRAVIS_EVENT_TYPE == "cron" ]; then
37 travis_terminate 0; 39 travis_terminate 0;
38 else 40 else
39 git submodule update --remote --force 41 git submodule update --remote --force
40 git add . 42 git add .
41 git commit -m "Update submodules" 43 git diff-index --quiet HEAD || git commit -m "Update submodules"
42 fi 44 fi
43 fi 45 fi
44install: 46install:
@@ -50,11 +52,13 @@ before_script:
50script: 52script:
51 - | 53 - |
52 if [ $TRAVIS_BRANCH == "release" ]; then 54 if [ $TRAVIS_BRANCH == "release" ]; then
55 echo "Building..."
53 travis_retry travis_wait 100 npm run build 56 travis_retry travis_wait 100 npm run build
54 fi 57 fi
55 - | 58 - |
56 if [ $TRAVIS_BRANCH == "nightly" ]; then 59 if [ $TRAVIS_BRANCH == "nightly" ]; then
57 npm version prerelease --preid=nightly -m "%s and trigger AppVeyor nightly build [skip travisci]" 60 npm version prerelease --preid=nightly -m "%s and trigger AppVeyor nightly build [skip travisci]"
61 echo "Building..."
58 travis_retry travis_wait 100 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=nightlies 62 travis_retry travis_wait 100 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=nightlies
59 if [ $TRAVIS_OS_NAME == "osx" ]; then 63 if [ $TRAVIS_OS_NAME == "osx" ]; then
60 git remote add nightly https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1 64 git remote add nightly https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1