Mailspring/.travis.yml

87 lines
2 KiB
YAML
Raw Normal View History

sudo: true
2017-02-22 05:59:27 +08:00
git:
submodules: false
2017-08-11 12:24:12 +08:00
language: node_js
node_js:
- '6.9'
2017-08-11 12:24:12 +08:00
2017-02-22 05:59:27 +08:00
addons:
2017-08-11 14:36:44 +08:00
artifacts:
working_dir: app/dist
target_paths: client/${TRAVIS_COMMIT:0:8}/${TRAVIS_OS_NAME}
permissions: public-read
2017-08-11 14:36:44 +08:00
paths:
- mailsync
- mailsync.dSYM.zip
2017-08-11 14:36:44 +08:00
- Merani.dmg
- Merani.zip
- $(find . -type f -name *.deb | tr "\n" ":")
- $(find . -type f -name *.rpm | tr "\n" ":")
2017-08-11 14:36:44 +08:00
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- clang
- cmake
2017-08-11 14:36:44 +08:00
- fakeroot
- g++-5
2017-08-11 14:36:44 +08:00
- git
- libgnome-keyring-dev
- xvfb
- rpm
- autoconf
- automake
- libtool
- libctemplate-dev
- libcurl4-openssl-dev
- libicu-dev
2017-08-11 14:36:44 +08:00
- libxext-dev
- libsasl2-dev
- libssl-dev
- libtidy-dev
2017-08-11 14:36:44 +08:00
- libxtst-dev
- libxkbfile-dev
- libglib2.0-dev
- libxml2-dev
- uuid-dev
2017-02-22 05:59:27 +08:00
branches:
only:
- master
2017-08-11 12:24:12 +08:00
- "/ci-.*/"
- "/stable.*/"
2017-02-22 05:59:27 +08:00
matrix:
include:
- os: linux
env: CC=gcc-5 CXX=g++-5 DEBUG="electron-packager:*"
2017-02-22 05:59:27 +08:00
- os: osx
2017-08-14 01:06:24 +08:00
osx_image: xcode8.3
2017-08-11 12:24:12 +08:00
env: CC=clang CXX=clang++ SIGN_BUILD=true DEBUG="electron-packager:*"
2017-02-22 05:59:27 +08:00
before_install:
# Decrypt and uncompress code signing certs, etc.
2017-08-11 12:24:12 +08:00
- 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;
2017-08-11 12:24:12 +08:00
- 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/Merani/app/build/resources/certs/ssh-askpass-fix
DISPLAY=nothing:0
git submodule update --init mailsync
script:
- mailsync/build.sh
- npm run build
2017-02-22 05:59:27 +08:00
cache:
directories:
- node_modules
- app/node_modules
- /tmp/mailsync-build-deps