aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorLibravatar Amine <amine@mouafik.fr>2020-05-13 04:33:34 +0000
committerLibravatar GitHub <noreply@github.com>2020-05-13 04:33:34 +0000
commit6c4b2cbde95d0280c8d2fce9e64397523146f245 (patch)
tree6ec0e6c4b81bb06af6edf41cfdff4aee1e8a067f /.travis.yml
parentUse Tray popUpContextMenu on macOS/Windows only (#741) (diff)
downloadferdium-app-6c4b2cbde95d0280c8d2fce9e64397523146f245.tar.gz
ferdium-app-6c4b2cbde95d0280c8d2fce9e64397523146f245.tar.zst
ferdium-app-6c4b2cbde95d0280c8d2fce9e64397523146f245.zip
Setup nightly releases deployment pipeline (#730)
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 12 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 7579878b7..29d31c4a8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,7 +12,7 @@ matrix:
12 - libxkbfile-dev 12 - libxkbfile-dev
13 - rpm 13 - rpm
14 - os: osx 14 - os: osx
15 if: branch = release 15 if: branch IN (nightly, release)
16 osx_image: xcode11 16 osx_image: xcode11
17 17
18language: node_js 18language: node_js
@@ -22,6 +22,7 @@ branches:
22 only: 22 only:
23 - develop 23 - develop
24 - release 24 - release
25 - nightly
25cache: npm 26cache: npm
26 27
27before_install: 28before_install:
@@ -34,6 +35,14 @@ before_script:
34script: 35script:
35 - | 36 - |
36 if [ $TRAVIS_BRANCH == "release" ]; then 37 if [ $TRAVIS_BRANCH == "release" ]; then
37 travis_retry travis_wait 100 npm run build 38 travis_retry travis_wait 100 npm run build
39 fi
40 - |
41 if [ $TRAVIS_BRANCH == "nightly" ]; then
42 npm version prerelease --preid=nightly -m "%s [skip ci]"
43 travis_retry travis_wait 100 npm run build -- --publish always -c.publish.provider=github -c.publish.owner=getferdi -c.publish.repo=nightlies
44 if [ $TRAVIS_OS_NAME == "osx" ]; then
45 git remote add nightly https://${GH_TOKEN}@github.com/getferdi/ferdi.git > /dev/null 2>&1
46 git push --quiet --set-upstream nightly HEAD:nightly >/dev/null 2>&1
47 fi
38 fi 48 fi
39