Skip to content

Commit 48f2987

Browse files
committed
Travis deploy osx, hopefully
1 parent 5018ff4 commit 48f2987

File tree

1 file changed

+36
-21
lines changed

1 file changed

+36
-21
lines changed

.travis.yml

+36-21
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,52 @@ env:
1010
global:
1111
secure: WaZq3f6KIAc0dnR4WOXYWDvUYiqlrzsZC/PQse47FnvC0oQC65J5w3kJOj/P26DgsUEqKQF3ukXogkM2mp5pS4+CMgivEmQmAbgQTtwcKpC5HPZxgI+8FgkCjcalJKWGWYoxlScNVNiKMs+89ApcSQE9kH9PZeUS9dukN2Php1U=
1212
before_install:
13-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository -y ppa:beineri/opt-qt56; fi
13+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository -y ppa:beineri/opt-qt56;
14+
fi
1415
addons:
1516
coverity_scan:
1617
project:
17-
name: "IJHack/qtpass"
18-
description: "Build submitted via Travis CI"
18+
name: IJHack/qtpass
19+
description: Build submitted via Travis CI
1920
notification_email: [email protected]
20-
build_command_prepend: "qmake; make clean"
21-
build_command: "make"
21+
build_command_prepend: qmake; make clean
22+
build_command: make
2223
branch_pattern: coverity_scan
2324
install:
24-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
25-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew unlink node; brew install node; fi
26-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew ls | grep -wq qt5 || brew install qt5; fi
27-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PATH=$PATH:/usr/local/opt/qt5/bin; fi
28-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install pandoc; fi
29-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then npm install -g appdmg; fi
30-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq update; fi
31-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install qt56base qt56tools qt56svg; fi
25+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
26+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew unlink node; brew install node; fi
27+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew ls | grep -wq qt5 || brew install qt5;
28+
fi
29+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PATH=$PATH:/usr/local/opt/qt5/bin;
30+
fi
31+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install pandoc; fi
32+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then npm install -g appdmg; fi
33+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq update; fi
34+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install qt56base qt56tools
35+
qt56svg; fi
3236
before_script:
33-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then source /opt/qt56/bin/qt56-env.sh; fi
37+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then source /opt/qt56/bin/qt56-env.sh; fi
3438
script:
35-
- qmake -v
36-
- qmake -Wall qtpass.pro
37-
- make -j$(nproc)
38-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then macdeployqt QtPass.app; fi
39-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then pandoc --standalone --from=markdown --to=rtf --output=README.rtf README.md; fi
40-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then appdmg appdmg.json qtpass-$(grep ^VERSION qtpass.pro | cut -d " " -f 6).dmg; fi
39+
- qmake -v
40+
- qmake -Wall qtpass.pro
41+
- make -j$(nproc)
42+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then macdeployqt QtPass.app; fi
43+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then pandoc --standalone --from=markdown --to=rtf
44+
--output=README.rtf README.md; fi
45+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then appdmg appdmg.json qtpass-$(grep ^VERSION
46+
qtpass.pro | cut -d " " -f 6).dmg; fi
4147
notifications:
4248
irc:
4349
channels:
4450
- chat.freenode.net#IJhack
4551
on_success: change
46-
# on_failure: always
52+
on_failure: always
53+
deploy:
54+
provider: releases
55+
api_key:
56+
secure: O6LAl2R5QIe/mgQwG5/pzbdC8gS58wtGVF2ebTVGgYsCgY0nRjLZ19H7BiQrYjbbXs8yw6cQjA+xbxNiVsIVs+Dx9j/fy2JOBeBTrGijlWLcJPT6/Ab65EjI2T96XvI8/YejRmbgjIdXFfuKtD/V4MM12LrvrvktwJp00G9l1Go=
57+
file: qtpass-*.dmg
58+
on:
59+
repo: IJHack/qtpass
60+
tags: true
61+
skip_cleanup: true

0 commit comments

Comments
 (0)