forked from Foundry376/Mailspring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
89 lines (80 loc) · 2.02 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
sudo: true
git:
submodules: false
language: node_js
node_js:
- '6.9'
addons:
artifacts:
working_dir: app/dist
target_paths: client/${TRAVIS_COMMIT:0:8}/${TRAVIS_OS_NAME}
permissions: public-read
paths:
- mailsync
- mailsync.dSYM.zip
- Mailspring.dmg
- Mailspring.zip
- $(find . -type f -name *.deb | tr "\n" ":")
- $(find . -type f -name *.rpm | tr "\n" ":")
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- clang
- cmake
- fakeroot
- g++-5
- git
- libgnome-keyring-dev
- xvfb
- rpm
- autoconf
- automake
- libtool
- libctemplate-dev
- libcurl4-openssl-dev
- libicu-dev
- libxext-dev
- libsasl2-dev
- libssl-dev
- libtidy-dev
- libxtst-dev
- libxkbfile-dev
- libglib2.0-dev
- libxml2-dev
- uuid-dev
branches:
only:
- master
- "/ci-.*/"
- "/stable.*/"
matrix:
include:
- os: linux
env: CC=gcc-5 CXX=g++-5
- os: osx
osx_image: xcode8.3
env: CC=clang CXX=clang++ SIGN_BUILD=true
before_install:
# Decrypt and uncompress code signing certs, etc.
- openssl aes-256-cbc -K $encrypted_faf2708e46e2_key -iv $encrypted_faf2708e46e2_iv
-in app/build/resources/certs.tar.enc -out app/build/resources/certs.tar -d;
- mkdir app/build/resources/certs;
- tar xvf app/build/resources/certs.tar --directory=app/build/resources/;
- source app/build/resources/certs/mac/set_unix_env.sh;
# Checkout the (currently private) C++ Mailsync codebase
- GIT_SSH_COMMAND='ssh -i app/build/resources/certs/mailsync-deploy-key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
SSH_ASKPASS=/Users/travis/build/Foundry376/Mailspring/app/build/resources/certs/ssh-askpass-fix
DISPLAY=nothing:0
git submodule update --init mailsync
script:
- npm run ci-setup-mac-keychain
- mailsync/build.sh
- mv ./mailsync ./mailsync-src
- DEBUG=electron-packager,electron-osx-sign npm run build
cache:
directories:
- node_modules
- app/node_modules
- /tmp/mailsync-build-deps