forked from zeromq/zeromq.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
109 lines (86 loc) · 2.54 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
language: node_js
cache: yarn
dist: bionic
python:
- 3.6
jobs:
include:
## TEST STAGE
- os: linux
node_js: "14"
env: ZMQ_DRAFT=true
- os: linux
node_js: "14"
env: ZMQ_DRAFT=true INCLUDE_COMPAT_TESTS=true
- os: linux
env: ALPINE_CHROOT=3.10 ZMQ_DRAFT=true INCLUDE_COMPAT_TESTS=true
sudo: required
node_js: "14"
- os: osx
osx_image: xcode10
env: ZMQ_DRAFT=true
node_js: "14"
- os: windows
node_js: "14"
# https://travis-ci.community/t/build-doesnt-finish-after-completing-tests/288
env: ZMQ_DRAFT=true YARN_GPG=no
- os: windows
node_js: "14/x86"
# https://travis-ci.community/t/build-doesnt-finish-after-completing-tests/288
env: ZMQ_DRAFT=true YARN_GPG=no
# Test shared libraries on Linux and macOS.
- os: linux
node_js: "14"
env: ZMQ_SHARED=true
addons: {apt: {packages: libzmq3-dev}}
- os: osx
osx_image: xcode10
node_js: "14"
env: ZMQ_SHARED=true
addons: {homebrew: {packages: zeromq, update: true}}
# Test older versions of ZMQ.
- os: linux
node_js: "14"
env: ZMQ_VERSION=4.2.4
# Test recent Node versions.
- os: linux
node_js: "14"
# Skip GC tests due to https://github.com/node-ffi-napi/weak-napi/issues/16
env: ZMQ_DRAFT=true SKIP_GC_TESTS=true INCLUDE_COMPAT_TESTS=true
- os: linux
node_js: "13"
# Skip GC tests due to https://github.com/node-ffi-napi/weak-napi/issues/16
env: ZMQ_DRAFT=true SKIP_GC_TESTS=true
## ADDITIONAL TESTS
# This test ensures the delayed resolution of read/write promises is correct
# by disabling immediate resolution (which happens 99% of the time) entirely.
- os: linux
node_js: "14"
env: ZMQ_NO_SYNC_RESOLVE=true ZMQ_DRAFT=true INCLUDE_COMPAT_TESTS=true NODE_NO_WARNINGS=1
## PREBUILD STAGE
- stage: prebuild
os: linux
env: ALPINE_CHROOT=3.10 ARCHIVE_SUFFIX=-x64-musl
sudo: required
script: npm run prebuild
- stage: prebuild
os: linux
node_js: "14"
env: ARCH=arm TRIPLE=arm-linux-gnueabihf GCC=8 ARCHIVE_SUFFIX=-armv7
addons: {apt: {packages: [gcc-8-arm-linux-gnueabihf, g++-8-arm-linux-gnueabihf]}}
script: npm run prebuild
- stage: prebuild
os: linux
node_js: "14"
env: ARCH=arm64 TRIPLE=aarch64-linux-gnu GCC=8 ARCHIVE_SUFFIX=-armv8
addons: {apt: {packages: [gcc-8-aarch64-linux-gnu, g++-8-aarch64-linux-gnu]}}
script: npm run prebuild
fast_finish: true
stages:
- name: test
- name: prebuild
if: tag IS present
install:
- travis_retry script/ci/install.sh
script:
- travis_retry script/ci/test.sh