forked from vladimiry/ElectronMail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (41 loc) · 1.56 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
# TODO improve artifacts sharing between the jobs, keep track of the following issues:
# - https://github.com/travis-ci/travis-ci/issues/7590
# - https://travis-ci.community/t/using-unified-cache-control-cache-identity/1531
branches: { only: [ master ] }
node_js: 15
language: node_js
cache: false
anchors:
macos-common: &macos-common
os: osx
osx_image: xcode9.4
macos-build-app: &macos-build-app
script: ./scripts/ci/travis/build-osx.sh
after_failure:
- tar -cvf e2e-logs.tar ./output/e2e
- yarn scripts/transfer upload e2e-logs.tar
install:
- npx envinfo
- yarn install --pure-lockfile
- yarn cache clean
notifications: { email: { on_success: never, on_failure: change } }
jobs:
include:
- stage: "build proton clients"
<<: *macos-common
cache: { yarn: false, npm: false, directories: [ "./output/git/backup", "./app/assets/db-search-monaco-editor" ] }
script: ./scripts/ci/prepare-webclients.sh
workspaces: { create: { name: "macos-webclients-artifact", paths: [ "./output/git/backup", "./app/assets/db-search-monaco-editor" ] } }
- stage: "build app package"
<<: *macos-common
<<: *macos-build-app
osx_image: xcode9.4
workspaces: { use: [ "macos-webclients-artifact" ] }
# the default macos package comes without postfix
# env: { ARTIFACT_NAME_POSTFIX: "-high-sierra" }
- stage: "build app package"
<<: *macos-common
<<: *macos-build-app
osx_image: xcode11.3
workspaces: { use: [ "macos-webclients-artifact" ] }
env: { ARTIFACT_NAME_POSTFIX: "-mojave" }