Mailspring/.travis.yml

69 lines
1.6 KiB
YAML
Raw Normal View History

2017-02-22 05:59:27 +08:00
sudo: false
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
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
- 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;
- 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;
2017-02-22 05:59:27 +08:00
script:
# Checkout and build the (currently private) C++ codebase
- GIT_SSH_COMMAND='ssh -i app/build/resources/certs/mailsync-deploy-key' git submodule update --init mailsync
- 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
- npm run build
2017-02-22 05:59:27 +08:00
cache:
directories:
- node_modules
- app/node_modules