forked from OpenBazaar/openbazaar-desktop
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
61 lines (60 loc) · 2.15 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
language: node_js
sudo: true
before_cache:
- brew cleanup
cache:
directories:
- node_modules
- "/usr/local/Cellar"
- $HOME/Library/Caches/Homebrew
node_js:
- '11'
addons:
apt:
packages:
- fakeroot
before_script:
- if [[ -n "$TRAVIS_TAG" ]]; then cp ./.travis/phore.pvk ./.travis/phore.keyfile; fi
- if [[ -n "$TRAVIS_TAG" ]]; then openssl aes-256-cbc -k "$ENCRYPTION_SECRET" -in .travis/cert.p12.enc -d -a -out ./.travis/cert.p12; fi
- if [[ -n "$TRAVIS_TAG" ]]; then openssl aes-256-cbc -k "$PHORE_SECRET" -in .travis/phore.cert.spc.enc -d -a -out ./.travis/phore.cert.spc; fi
- if [[ -n "$TRAVIS_TAG" ]]; then if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then "./.travis/add-key.sh"; fi ; fi
jobs:
include:
- os: osx
osx_image: xcode11
env: BINARY=osx
- os: osx
osx_image: xcode11
env: BINARY=osxclient
- os: linux
- os: osx
osx_image: xcode11.2
env: BINARY=win
script:
- npm run lint
- npm run test
- if [ -n "$TRAVIS_TAG" ]; then ./build.sh; fi
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
file:
- "dist/win64/RELEASES"
- "dist/win64/*.exe"
- "dist/win64/*.nupkg"
- "dist/osx/*.dmg"
- "dist/osx/*.zip"
- "dist/linux32/*.deb"
- "dist/linux64/*.deb"
- "dist/linux32/*.rpm"
- "dist/linux64/*.rpm"
skip_cleanup: true
all_branches: true
on:
tags: true
env:
global:
- secure: udFem4PbHoVMJzp/bDgE2x+/3uY+c9llv4RMkVRru3Y/QaVjVg6c1K2uovmUhdmo0/YjzlOhGlHHpA/klxHy5Yc7Ba3cahlnaugMeCHWEUnOuX2BwzFc051PPce5SpKqLGZTHSK8PQtFYiuirgnaN8Y3YZ1R7h4lfiFVHN76KYVmB+nFojaykYA0tnZKT/wWQnsE6H/+ApxAHTPKjAktUbc2a5ojrdj84I+fWYstDm72u3ykRiUilJVA8WJ8tnuhTenNoGkzNda4pbyKcEe2UnswhEOukDuYn6V34ifYFx3uWlS9laRjsmNudaNmiLIw1Gx5l5IVgy1/QBWBAfJCmgq8Shs0FjbI87uvU0w4D8k92dp2wC6MKtFuiMbVb/1xBnV5h8dtfO/oE1/xHX4xBRiJdosLeyO8C3sRRIi36QQJS4HE7D+AJ0pbjxjuJuJir2gAldo+YnRpD2yZY8eOgmttOZuD5g9CZpRF4J0lru/HOgDGJ48NCr99/069dzGtV2QCMwhIrVU7rDVqI/fub5cZW9KQHOMd0oDHjEHv87WSPF7s6/XmPsHFaBNQLsVvoe3WDrZ0AMiTFbyH0tdVO3so+lB00b3RBM8GsqTIJ9GO61rAnmir7iCYjOW1PlT/0O3s4aGde2LP0UwqO23MwvTmE7LMNlXhbHhn9OY5QPY=
- WINEDLLOVERRIDES="mscoree,mshtml="
- WINEDEBUG="-all"
prerelease: true