2017-02-22 05:59:27 +08:00
|
|
|
# The private Nylas monorepo build script. This will build a full signed
|
|
|
|
# release for the Nylas Mail client
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- build-essential
|
|
|
|
- clang
|
|
|
|
- fakeroot
|
|
|
|
- g++-4.8
|
|
|
|
- git
|
|
|
|
- libgnome-keyring-dev
|
|
|
|
- xvfb
|
|
|
|
- rpm
|
|
|
|
- libxext-dev
|
|
|
|
- libxtst-dev
|
|
|
|
- libxkbfile-dev
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /ci-.*/
|
|
|
|
- /stable.*/
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2017-03-15 04:39:56 +08:00
|
|
|
env: NODE_VERSION=6.9 CC=gcc-4.8 CXX=g++-4.8 DEBUG="electron-packager:*" ONLY_CLIENT=true
|
2017-02-22 05:59:27 +08:00
|
|
|
- os: osx
|
2017-03-15 04:39:56 +08:00
|
|
|
env: NODE_VERSION=6.9 CC=clang CXX=clang++ SIGN_BUILD=true DEBUG="electron-packager:*" ONLY_CLIENT=true
|
2017-02-22 05:59:27 +08:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- openssl aes-256-cbc
|
|
|
|
-K $encrypted_faf2708e46e2_key
|
|
|
|
-iv $encrypted_faf2708e46e2_iv
|
|
|
|
-in packages/client-private-plugins/encrypted_certificates/travis/travis-files.tar.enc
|
|
|
|
-out packages/client-private-plugins/encrypted_certificates/travis/travis-files.tar
|
|
|
|
-d;
|
|
|
|
- mkdir packages/client-app/build/resources/certs;
|
|
|
|
- tar xvf packages/client-private-plugins/encrypted_certificates/travis/travis-files.tar
|
2017-02-23 05:19:45 +08:00
|
|
|
--directory=packages/client-app/build/resources/;
|
|
|
|
- source packages/client-app/build/resources/certs/mac/set_unix_env.sh;
|
2017-02-22 05:59:27 +08:00
|
|
|
|
|
|
|
install:
|
|
|
|
- git clone https://github.com/creationix/nvm.git /tmp/.nvm
|
|
|
|
- source /tmp/.nvm/nvm.sh
|
|
|
|
- nvm install $NODE_VERSION
|
|
|
|
- nvm use --delete-prefix $NODE_VERSION
|
|
|
|
|
|
|
|
script:
|
2017-03-14 06:48:45 +08:00
|
|
|
- npm install && npm run build-client && npm run upload-client
|
2017-02-22 05:59:27 +08:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
- apm/node_modules
|