forked from JCMais/node-libcurl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
90 lines (86 loc) · 2.46 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
os:
- linux
- osx
# macos version - this is the current
osx_image: xcode9.4
# linux dist
dist: trusty
language: node_js
node_js:
- '14'
- '12'
- '10'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# Those are the defaults for trusty release on TravisCI
- gcc-4.8
- g++-4.8
matrix:
fast_finish: true
# allow_failures:
# - node_js: "11"
include:
- os: osx
env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 ELECTRON_VERSION=10.1.0
- os: osx
env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 ELECTRON_VERSION=9.3.3
- os: osx
env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 ELECTRON_VERSION=8.5.3
- os: osx
env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 ELECTRON_VERSION=7.3.3
- os: osx
env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 ELECTRON_VERSION=6.1.12
- os: osx
env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 ELECTRON_VERSION=5.0.13
- os: osx
env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 NWJS_VERSION=0.44.5
- os: osx
env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 NWJS_VERSION=0.43.6
env:
global:
- GCC_VERSION=4.8
- secure: d64E8XbVGHuQ0kls1oVUF1y6pnj3iqZB34roKBHAFTyWBXReC1FWLb+qEShCJicUDkeK2At7vQUz7ohMn2mL/hVXiRbuSaYuDKFx8iDeei9mTgE+iy258mSovnNvXfG72EP5+LB+UOhgmTGe0qyTALOQ6ceCgjdscul3IGWE8lw=
matrix:
- LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0
- LIBCURL_RELEASE=7.50.0
cache:
directories:
- $HOME/.node-gyp
- $HOME/.nw-gyp
- $HOME/.npm
- $HOME/.cache/electron
- $HOME/.cache/yarn
- $HOME/deps
# macOS Electron cache
- $HOME/Library/Caches/electron
git:
depth: 10
submodules: false
# disable redundancy when building PRs
branches:
only:
- master
- develop
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
before_install:
# Use latest yarn
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
- export PATH=$HOME/.yarn/bin:$PATH
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then
export CC="gcc-${GCC_VERSION}";
export CXX="g++-${GCC_VERSION}";
export LINK="gcc-${GCC_VERSION}";
export LINKXX="g++-${GCC_VERSION}";
fi
- if [[ $TRAVIS_PULL_REQUEST != "false" ]]; then
export PUBLISH_BINARY="false";
fi
- export PATH=$HOME/bin:$PATH
- yarn --version
- node --version
install:
- GIT_TAG=$TRAVIS_TAG GIT_COMMIT=$TRAVIS_COMMIT ./scripts/ci/build.sh
script: true