-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
50 lines (43 loc) · 1.18 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
matrix:
include:
- os: osx
osx_image: xcode9.4
language: node_js
node_js: "8"
branches:
only:
- master
- develop
cache:
directories:
- $HOME/Library/Caches/Homebrew
- node_modules
before_cache:
- brew cleanup
install:
- yarn
- brew install https://raw.githubusercontent.com/longseespace/homebrew-tap/master/qt.rb
- brew link --force qt
- brew install qpm
before_script:
- yarn build
- cd native && qpm install
- mkdir -p "$TRAVIS_BUILD_DIR-build"
- qmake -v
- qmake -o "$TRAVIS_BUILD_DIR-build" -r -Wall -Wlogic -Wparser -spec macx-clang CONFIG+=release \
CONFIG+=force_debug_info CONFIG+=separate_debug_info PRODUCTION=true "$TRAVIS_BUILD_DIR/native"
script:
- make -C "$TRAVIS_BUILD_DIR-build" -j2 all
- make -C "$TRAVIS_BUILD_DIR-build" -j2 check
- macdeployqt "$TRAVIS_BUILD_DIR-build/Ben.app" -dmg -qmldir="$TRAVIS_BUILD_DIR/native/dist"
- yarn sentry-cli upload-dif -t dsym "$TRAVIS_BUILD_DIR-build"
deploy:
provider: releases
api_key: $RELEASES_API_KEY
file: "$TRAVIS_BUILD_DIR-build/Ben.dmg"
skip_cleanup: true
name: "Latest Development Build"
overwrite: true
prerelease: true
on:
branch: develop