forked from notepadqq/notepadqq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (40 loc) · 988 Bytes
/
.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
language: cpp
sudo: false
jobs:
include:
- stage: build
if: type = pull_request
os: linux
env: NQQ_BUILD_TYPE=FORMAT
script: .travis/script.sh
addons:
apt:
sources:
- llvm-toolchain-trusty-6.0
- ubuntu-toolchain-r-test
packages:
- clang-format-6.0
- stage: build
os: linux
env: NQQ_BUILD_TYPE=COMPILE
sudo: true
script: .travis/script.sh
services:
- docker
- stage: deploy
os: osx
osx_image: xcode11
env:
- NQQ_BUILD_TYPE=DEPLOY
- NQQ_VERSION=${TRAVIS_TAG:-${TRAVIS_COMMIT}}
script: .travis/macos-script.sh
deploy:
provider: releases
edge: true # https://docs.travis-ci.com/user/deployment-v2
file:
- "out/release/notepadqq-${NQQ_VERSION}.dmg"
skip_cleanup: true
draft: true
on:
repo: notepadqq/notepadqq
tags: true