forked from sentialx/electron-global
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (49 loc) · 1.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
language: node_js
node_js: '12'
sudo: enabled
install:
- npm ci
python:
- 3.7
cache:
directories:
- node_modules
- $HOME/.npm/_prebuilds
matrix:
include:
- os: linux
dist: bionic
- os: osx
osx_image: xcode11
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- ninja-build
- libcurl4-openssl-dev
- gtk+-3.0
- wine-stable
- pkg-config
- mingw-w64
- python3-pip
- python3-setuptools
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then eval "brew install gtk+3 ninja" ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip3 install --upgrade wheel ; fi
- pip3 install meson
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CC=gcc-7 && export CXX=g++-7 ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "1" | sudo update-alternatives --config i686-w64-mingw32-g++ ; fi
- source ./scripts/build.sh
deploy:
provider: releases
api_key: $GH_TOKEN
file_glob: true
on:
tags: true
file:
- build/*.zip
skip_cleanup: true