forked from klaudiosinani/tusk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (67 loc) · 2.51 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
sudo: required
dist: trusty
language: c
osx_image: xcode9
matrix:
include:
- os: osx
- os: linux
env: CC=clang CXX=clang++ npm_config_clang=1
compiler: clang
services:
- docker
addons:
apt:
packages:
- xz-utils
- icnsutils
- graphicsmagick
- rpm
- snapd
- gnome-keyring
- libgnome-keyring-dev
- libsecret-1-dev
- python-gnomekeyring
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- FAILURE_ARCHIVE_FILE=travis-build-id-$TRAVIS_BUILD_ID.tar.gz
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
- $HOME/.cache/snapcraft
install:
- nvm install 6
- npm install
- npm prune
script:
- npm test
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker run --rm -ti \
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|GH_|GITHUB_|BT_|AWS_|STRIP|BUILD_') \
--env ELECTRON_CACHE="/root/.cache/electron" \
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
-v ${PWD}:/project \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
-v ~/.cache/snapcraft:/root/.cache/snapcraft \
electronuserland/builder:8 \
/bin/bash -c "apt-get update && apt-get install libsecret-1-dev -y && npm run dist"
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then npm run pack:macos; fi
before_deploy:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo rm -rf dist/linux-*; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rm -rf dist/Tusk-darwin-x64; fi
deploy:
provider: releases
api_key:
secure: IdI0k89D9KgNQD/KlOg7K0A/ZB04Zrcl7HB90zzM9ip1lFXtxh20JzdmEnfSHGh6QICw1teM28RcesDeKckOo+6gTbOvTgstpFZiOVEKkGRzbccL9l8l8pL/YvHxooB8vsxKcKAkxGvLaisT4/yW1ZUIFihANWWt3bIJlYhh65eWNUf7xsvmmXvx+aaWihMcG5tZWTRvk3K0q2UPATFdffIRhmDPU67PxuWQn55shgChg7MSPhzU//YED+aLw2hJvVN53TXeUwsoJfayMFz071gZSEVYSnCIF5mcSrDbaIAPeiixOWOAkhfDgyVK1ut3I9t0Ie8om1r+jwyk7Kxgq6DJk5bmRayi9CARmU2v7fkdZAAJcnWaJ2SyvZC+wZ2K2o5Ky+X6Ou0+fxkdgwUkQx10QlosDnxlzOEFjmU7o/aujp81pUSS3mghRknfAIrG3F4mJj/EZzjIsetADFjQw7dNsD+SWGccft0MgltItSWqfeRJvhLhamOI4hqteyzhldVlaFha0zzryws3G1t3w7jYPf+9ecz/Asvo9vr20/LGeNJvDaDVwWz19K8TLM/fpwcxDFomLvXtBT0q+TuLGAGKHFAwQ/rbaFUtMXjunLRhx8Nnj4E4shaIiUr3i2x6dLqTxrLJq1347LDldvJ3FxAwomJmK8J8JtowA5S1dZs=
file_glob: true
file: dist/*
skip_cleanup: true
on:
tags: true