-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
41 lines (35 loc) · 1.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
language: node_js
node_js:
- node
- lts/*
- '10'
os:
- osx
- linux
- windows
osx_image: xcode9.2
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CC=gcc-7 && CXX=g++-7; fi
- if ! [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm run fetch-secp256k1; fi
before_deploy:
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
- npm run prebuild
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm run prebuild-ia32; ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-all.tar"; fi
- tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds" .
deploy:
provider: releases
draft: false
prerelease: true
api_key:
secure: "dmvczS0etFcN28WG1hW8pwLApL6MTPm1rUIapnkPuTux09D6QACcuz4O+spksVGM39Q4pfga06OsXswb4AQRjcmS070PULt66R24SatYZXXIiCVjcA9yb0tkreobcTyZwfCgdTshJsFcFETPMP/5+Tf8+zsl6xZlZsGyZ7pXHy4zgJLCE8P7+glEDW27vZD3ZHR5UO5ZdBAMOEpLYQ/1bZhZeFobLpkdFEYR3kxahizWPUVhhJxYTtp0GjIY9Xr0fuJP/AyyfCBi4spk2de8RmXy0lk2StAF+PtoBLOTsAW8436dr6qtCBCGIHFmfjchDjpquK8SF/0QWFPWtp4Qm5eg0n/+8tmnM6mkiedJQRFP25p878JExK4gfkdIpYdjlfLc2DYoXM/flbc4ZoTOuO8bE19oTJNb7ABDB1ssEnXKJ/EM4QTmVtYHg/OeEXVhtgqvCEIDN7/kL9fUIZvqtBsYqrii0jnd9JnFBr+1m/VcSvX7MjTqAlKSP1KAw7ihcDYXdQl7FEVBfr2Gz/eZ+yzkDUFwh7qJ3+oeX2nvNc5wPrNiXZkKYZr4geejE4n8DWncZwRQNXouN3jq+5lAtwqsxfVIm+8modVHlCtprWb2upBUltbpiX2ARpXuvbndyYyztPAl876yaewMc/dHm3DMqzZ2qWOX1G+eOBxvh2Y="
file: "$ARCHIVE_NAME"
skip_cleanup: true
on:
tags: true
node: 'lts/*'