Форк Rambox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.8 KiB

7 years ago
matrix:
include:
- os: osx
osx_image: xcode9.4
language: node_js
node_js: "10"
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
9 years ago
7 years ago
- os: linux
services: docker
language: generic
9 years ago
branches:
only:
- master
9 years ago
cache:
directories:
7 years ago
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
9 years ago
before_install:
7 years ago
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
mkdir -p /tmp/git-lfs && curl -L https://github.com/github/git-lfs/releases/download/v2.3.1/git-lfs-$([ "$TRAVIS_OS_NAME" == "linux" ] && echo "linux" || echo "darwin")-amd64-2.3.1.tar.gz | tar -xz -C /tmp/git-lfs --strip-components 1
export PATH="/tmp/git-lfs:$PATH"
9 years ago
fi
install:
9 years ago
- git config --global core.autocrlf input
9 years ago
- git clone https://github.com/saenzramiro/rambox-build.git $TRAVIS_BUILD_DIR/build/production/Rambox/
9 years ago
- npm install
9 years ago
- npm --prefix $TRAVIS_BUILD_DIR/build/production/Rambox/ install $TRAVIS_BUILD_DIR/build/production/Rambox/
7 years ago
before_script:
- git lfs pull
9 years ago
script:
7 years ago
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run --rm \
7 years ago
--env-file <(env | grep -v '\r' | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_') \
7 years ago
-v ${PWD}:/project \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \
/bin/bash -c "npm run build:linux"
else
npm run build:osx
fi
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
9 years ago
deploy:
provider: releases
9 years ago
api_key:
secure: F7z4j9xzhpVyfovrf33jbVdW9dwgpIgbn85dxe8y/kZbQ9sAVU8LzoBZ3PlfeXmoV5CnSUa5j/fe8BmPKiG31kgAH7cktsCOgyOLggO1Sy+vnx7RQwwE/jzb7PzEqI2BP6TG/eOfylBxGBInWeaoSRfK3IRAvLHvvxY1eL4Wq/KRaanzMvh+JdCaStIKJSnI/rc9noI7vtOtgHot+F162s1G1k5/UcdbsfXWzotMVsonhlGgB/Jz9srnJpMpxYxaknR8UFPVRzOM5UzzMo64hXRUDnCFlYcTHcSAkvgKHI0SIPIS3kOdvgrYGavPLK2CAteQk7Dy1lHnEixmKPxG7eVAFwleUo8ePR82WXFkv5gacCvcrGrRLQ9nC/ygeMVgC5XxcHq3ykkcrstu5yjC1yEYFs23gA1Z4DIctwq1diyO72/FNxghV5ckN5WtJQs1QTT+Ec2NjLrWgFYuaEHYgAGopzTPN8gT9fyIv/lAq1S/l4P/z3EDS42UL+UTM77gyXSYShCKneDnFC34ATlYNDhJFRzLZ6qJG5UlOwrfXxUYeGUpQZlV41jg+VFWmPDAeQTMjGP5fRA3w1hFobBotBVyrtbcovTb4TFVTKJWOC/0wyiwku7YTY/nqMU/hR4IluTyRh9Z4NMn5xT5UW63OZd4DJvE573JxmJmnPc0fbo=
9 years ago
file_glob: true
9 years ago
file:
9 years ago
- "dist/*.zip"
- "dist/*.snap"
9 years ago
- "dist/*.deb"
- "dist/*.tar.gz"
- "dist/*.AppImage"
- "dist/*.rpm"
9 years ago
- "dist/mac/*.zip"
- "dist/mac/*.dmg"
9 years ago
skip_cleanup: true
9 years ago
overwrite: true
9 years ago
prerelease: true
9 years ago
on:
9 years ago
repo: saenzramiro/rambox
9 years ago
tags: true
9 years ago
all_branches: true
notifications:
9 years ago
email:
recipients:
- rambox@protonmail.com
on_success: always
on_failure: always