This repository has been archived by the owner on Jul 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (53 loc) · 2.08 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
matrix:
include:
- os: osx
osx_image: xcode10.2
language: node_js
node_js: '12'
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- os: linux
services: docker
language: generic
env:
- ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true
cache:
directories:
- node_modules
- "$HOME/.cache/electron"
- "$HOME/.cache/electron-builder"
before_install:
- npm i -g npm
script:
- npm install
- npm run electron:generate-icons
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run --rm \
--env-file <(env | grep -vE '\r|\n' | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_') \
-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 -- --windows --linux --publish never"
else
npm run build -- --publish never
fi
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
deploy:
provider: releases
skip_cleanup: true
file_glob: true
api_key:
secure: gFgq57zy94rhVHfcBukTtapJ82rD3+qp28AhHX31031TmoGkWqWZPAcJRTWJOU68db9Vy2hdDgFesWbg/cGCoRq+ZF5HOXkrG9VL1LpI8KM6f9YFmWSwlSrDQI4iWstfFE0HJ/nU0lYMr5GUi2tti/Hh6tRh21N1Iwq97DPBUZolDwzyFgmm1Jku84IAnjQfsTJVeNs4DQe3o6LJmtMmFHFIy+ZGMwLTElO4O/SFB/pjhHYH9j64Xub0mtiM3iwqIiI23q26Bzl46sjD7F2Z5TB2nJMBSLeCRg38h4LBN3G/gUeSYpj52Gq1GAkYES3s2atiRc0i997wBCJiIpmNMGWW3jt6p7mL5gy4bD6axEE9CfuWWUCldsqJ0xarLZ1QKhDwiZe0z/Zi813E28M7HkeV7JElsLkeOo82PvkRtiNWFNw43oAblE8DFlTf8tcExJhCva8UOa/mv4hIhhQNdAzvrGKwglIJ1LJcCyYuG6JLL0u/Kf8+01CSl2ulcT/ZUWVtgcToG7SIm86adpDW7/j2t2sX7+7IG5WyMHENwmQM97pjxUzKf6/L+icMvOfH7b6UmyZnLignliOKQ+dEZ6Jp6/j9DJ7IRxLSWg9c/nrSBdMPwt3zdNW5osupt4S5iH19Q+hYRp2JNvoLA52lTOt8+NWMeqq1EbVeyMEXDnY=
file:
- "**/dist_electron/*.AppImage"
- "**/dist_electron/*.snap"
- "**/dist_electron/*.exe"
- "**/dist_electron/*.dmg"
on:
repo: TheSimpleZ/TerraCAD
tags: true