2017-02-22 05:59:27 +08:00
|
|
|
sudo: false
|
|
|
|
|
2017-08-12 03:05:58 +08:00
|
|
|
git:
|
|
|
|
submodules: false
|
|
|
|
|
2017-08-11 12:24:12 +08:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
node_js:
|
2017-08-11 14:20:34 +08:00
|
|
|
- '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}
|
2017-08-12 00:20:46 +08:00
|
|
|
permissions: public-read
|
2017-08-11 14:36:44 +08:00
|
|
|
paths:
|
2017-08-12 03:05:58 +08:00
|
|
|
- ../MailSync
|
2017-08-11 14:36:44 +08:00
|
|
|
- Merani.dmg
|
|
|
|
- Merani.zip
|
2017-08-12 00:20:46 +08:00
|
|
|
- $(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
|
|
|
|
- fakeroot
|
|
|
|
- g++-4.8
|
|
|
|
- git
|
|
|
|
- libgnome-keyring-dev
|
|
|
|
- xvfb
|
|
|
|
- rpm
|
|
|
|
- libxext-dev
|
|
|
|
- libxtst-dev
|
|
|
|
- libxkbfile-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
|
2017-08-11 12:24:12 +08:00
|
|
|
env: CC=gcc-4.8 CXX=g++-4.8 DEBUG="electron-packager:*"
|
2017-02-22 05:59:27 +08:00
|
|
|
- os: osx
|
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:
|
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;
|
2017-08-11 10:23:40 +08:00
|
|
|
- mkdir app/build/resources/certs;
|
2017-08-11 12:24:12 +08:00
|
|
|
- tar xvf app/build/resources/certs.tar --directory=app/build/resources/;
|
2017-08-11 10:23:40 +08:00
|
|
|
- source app/build/resources/certs/mac/set_unix_env.sh;
|
2017-02-22 05:59:27 +08:00
|
|
|
|
|
|
|
script:
|
2017-08-12 03:05:58 +08:00
|
|
|
# Checkout and build the (currently private) C++ codebase
|
2017-08-12 03:21:25 +08:00
|
|
|
- GIT_SSH_COMMAND='ssh -i app/build/resources/certs/mailsync-deploy-key' git submodule update --init mailsync
|
2017-08-12 03:05:58 +08:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild -scheme MailSync -configuration Release; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "TODO"; fi
|
|
|
|
# Build and package the Merani Electron application
|
2017-08-11 13:47:06 +08:00
|
|
|
- npm run build
|
2017-02-22 05:59:27 +08:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2017-08-11 13:47:06 +08:00
|
|
|
- app/node_modules
|