-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
69 lines (60 loc) · 2.18 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
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
matrix:
include:
# linux
- os: linux # abi 47
env: NODE_VERSION="5.1.1" CXX="g++-4.9"
- os: linux # abi 48
env: NODE_VERSION="6" CXX="g++-4.9"
- os: linux # abi 49
env: NODE_VERSION="6" ELECTRON="1.3.6" CXX="g++-4.9"
# os x x86
- os: osx
env: NODE_VERSION="5.1.1" CXX="clang"
- os: osx
env: NODE_VERSION="6" CXX="clang"
- os: osx
env: NODE_VERSION="6" ELECTRON="1.3.6" CXX="clang"
before_install:
- rm -rf ~/.nvm/ && git clone --depth 1 "https://github.com/creationix/nvm.git" ~/.nvm
- source ~/.nvm/nvm.sh
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- export PATH="./node_modules/.bin/:$PATH"
install:
- if [[ -n "$ELECTRON" ]]; then
export npm_config_target=$ELECTRON;
export npm_config_disturl=https://atom.io/download/atom-shell;
export npm_config_runtime=electron;
export npm_config_build_from_source=true;
fi
- npm install
script:
- if [[ -z "$ELECTRON" ]]; then
npm test;
fi
- node-pre-gyp package testpackage
git:
depth: 10
branches:
only:
- master
- /^v\d+\.\d+\.\d+(?:-[a-z0-9.-]+)?$/
before_deploy:
- export RELEASE_NODE_FILE=$(find build/stage -name '*.tar.gz')
- echo "Deploying $RELEASE_NODE_FILE to GitHub"
deploy:
provider: releases
api_key:
secure: O3QcxmbHw+ONU2KtfyLPulYY6Reas74xmSKBdxnbhyKnRGmuJo6X2+QE3F6TycA0IgY5PpV7PqM8V7rQ8+RgxJXRShq3EslZmf/ujUBn9nxX1mR61qjhclbQN6OLeWhUKEHp6Dz5xbqjO3NNDk4CdMPsa3DeBYjo8mDPFn96AQp4IoyM7GAUSC56t82xlyLqQ99pA235JH0YjL4V0s8YHLxMJDIzsDYWNz/BKk1Yck+MIeBlQtbwd4ZBSnnOJjkhkCzvdCtHN/rYRfM9I6T7BpFg0CgpccvGSZZ8zhuyAnvy9fI9MUiaA8e6gQYwbSEFFqokCohd7dsxbqURcbk80C/6w3DzmK51B5MQe8ozbFNHX0lNoKhzl9pQY76Gfa4atMD4dbQBsFu7aioYu/mR45cu4DPvDzE4E41lo/2f1B8dFgTvWoNqTdeZBZ1ths0rODHG7FO7nfzSwUPMYxJpNafcvs55FE7RiEKpeAEEAUubJSAfWvRGPxoAqBRxIjBzKwIt9L6zvnYHU/8P7Jp1zVHmRlguEa/CjkO1NmoCIbAHpDaRJv9rszV8o7I3CUYz67y8t7lgW0vlgH8iletN7LjE2bCEimdCgXRaeN4EyykxoGJf2BaHNuj1cIuHjpsqx9gDhuTL+fd45vm7DNSrFJPn106Uh6W42GxJ+/rTUbc=
file: "$RELEASE_NODE_FILE"
skip_cleanup: true
on:
repo: hansonw/fuzzy-native
tags: true