-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
.travis.yml
150 lines (141 loc) · 6.55 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
language: cpp
compiler:
- gcc
# Prebuild S3 keys
env:
global:
# AWS_ACCESS_KEY_ID
- secure: "Du5tfPwHEyVI5+x+lgKXULbTALBNWUvJRnKQNHkYSVmNsUjxZO38qJWeNn+OhDdYJuYL7raequ6Z5VEc9SHtvNjghwEVejyDDE2A3Mmlqzh/RRlngku75UVYJlB2ROYtc/9elq7oM9YQly5UvcpbGdJAxcqUu4NixW5vDeIL980KKklLAsgfTaP2lSVFNzpaF7CLubBXW3kUoLgfyvq8M+rKemYw1+Bjq5cVOuFjeOpr7eVNRt6Mg3fpkQB9Sj38zfkd5+nqF/0n99hLdip5+vtt8jXhaA4andpz4exANBpDqgR3s4nu4QT7F04GrOUqAazO361vF6pN3jjI+dDZQtGLdGzd4H9jP/gDxwSF1yeWCN5xmUIk6AVL/G/T+lReFiwJNLbxdgxapfwX42J72sO/7vMkbZz3bKoyToXTHISnln6imy5mQ/KemPG3V5uur2JA4b51t5+sLQHGQMmJx9HgDgCmYKzORSsa9SsxTekQQKJ3RCdvJlOtXs0Y+jBd5VckVhpeYSii2WTmAtZEYWsp3m+SH6NyDFQKn61dz/b82W1w8Z85hNl3pM87hMr5je5wM957QFn2H8McIz7sO+oYty3E2d1rNPegbwNPOopTVqix+I6a17/mzmKOTp/b9z2efx4HSA1ZKY7ymv1WwLaomZO0HSlWSrl3MHe1gtI="
# AWS_SECRET_ACCESS_KEY
- secure: "fyFvhbviaLkncZMKabZIiZy6FHXUG2w9HRuTQKC6fMs+J1WlHb2L4vGE1Dtt3eiou7tZ3GsBZJzT/tVzQzzycJRv6gVKyKUUFi7QlIQ6736g97oRQiGPH6TDIUwvNcbAoCfwFUzGad6XECk1xlVMeU8TM1vLKlJz0vMv/R2fP9m/3B4AmMaYM2HgWW+RwC1z1NFQkoVzRQlCzSqEZkDsnGSC2DYJKLm9DsyqMpomzAhPhIGQRIWjhjAGCzmEze+0Xu1mGSaMmA3cNQY3RkJ1LYFXT/42qdBOapYNkGH31Vzc5S7dpMSNaYTG0aJ9Sd7Io3toP58GMZMrRau1F+UzSeR18hwXF3y+L1U8cUe9F1amZ57amqP2u3JrfoX7QbqSfVkWOBj/VtebLa0mZC9q0GdUXDip8fN4d6QXFl9ZbLM/DIMAlu1h0pHuRQ48xghYmjhm1bEp9QSTNqQ/+q+mr5dbbRvRC37brOuXeyE4sNcajTdYSP/WjQmtVIJx+9lS+HyNRyeXHWAgfwTJJo+pY8TfxvU4/dxhkpyTlZ6IM7+lcbaGGz1UlhCqjB3x4aiglTkafXwI/HSEtXKpe0IHfjFw1rnJ24lAyYiYKOgIDumDtOsjZaDJbTqWg0dqHReCrhy3P35Y1s081+pj/Vr3fzIAi2INxai0KCvGTwHrdag="
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- libc6-dev # for libiconv which is needed by libgdal
matrix:
include:
# OSX
- os: osx
env: NODE_NVM_VERSION="16" TARGET=STATIC
- os: osx
env: NODE_NVM_VERSION="16" TARGET=SHARED
- os: osx
env: NODE_NVM_VERSION="16" TARGET=TRUNK
- os: osx
env: NODE_NVM_VERSION="15" TARGET=STATIC
- os: osx
env: NODE_NVM_VERSION="15" TARGET=SHARED
- os: osx
env: NODE_NVM_VERSION="15" TARGET=TRUNK
- os: osx
env: NODE_NVM_VERSION="14" TARGET=STATIC
- os: osx
env: NODE_NVM_VERSION="14" TARGET=SHARED
- os: osx
env: NODE_NVM_VERSION="14" TARGET=TRUNK
- os: osx
env: NODE_NVM_VERSION="13" TARGET=STATIC
- os: osx
env: NODE_NVM_VERSION="13" TARGET=SHARED
- os: osx
env: NODE_NVM_VERSION="13" TARGET=TRUNK
- os: osx
env: NODE_NVM_VERSION="12" TARGET=STATIC
- os: osx
env: NODE_NVM_VERSION="12" TARGET=SHARED
- os: osx
env: NODE_NVM_VERSION="12" TARGET=TRUNK
- os: osx
env: NODE_NVM_VERSION="11" TARGET=STATIC
- os: osx
env: NODE_NVM_VERSION="11" TARGET=SHARED
- os: osx
env: NODE_NVM_VERSION="11" TARGET=TRUNK
- os: osx
env: NODE_NVM_VERSION="10" TARGET=STATIC
- os: osx
env: NODE_NVM_VERSION="10" TARGET=SHARED
- os: osx
env: NODE_NVM_VERSION="10" TARGET=TRUNK
# Linux
- os: linux
env: NODE_NVM_VERSION="16" TARGET=STATIC
- os: linux
env: NODE_NVM_VERSION="16" TARGET=SHARED
- os: linux
env: NODE_NVM_VERSION="16" TARGET=TRUNK
- os: linux
env: NODE_NVM_VERSION="15" TARGET=STATIC
- os: linux
env: NODE_NVM_VERSION="15" TARGET=SHARED
- os: linux
env: NODE_NVM_VERSION="15" TARGET=TRUNK
- os: linux
env: NODE_NVM_VERSION="14" TARGET=STATIC
- os: linux
env: NODE_NVM_VERSION="14" TARGET=SHARED
- os: linux
env: NODE_NVM_VERSION="14" TARGET=TRUNK
- os: linux
env: NODE_NVM_VERSION="13" TARGET=STATIC
- os: linux
env: NODE_NVM_VERSION="13" TARGET=SHARED
- os: linux
env: NODE_NVM_VERSION="13" TARGET=TRUNK
- os: linux
env: NODE_NVM_VERSION="12" TARGET=STATIC
- os: linux
env: NODE_NVM_VERSION="12" TARGET=SHARED
- os: linux
env: NODE_NVM_VERSION="12" TARGET=TRUNK
- os: linux
env: NODE_NVM_VERSION="11" TARGET=STATIC
- os: linux
env: NODE_NVM_VERSION="11" TARGET=SHARED
- os: linux
env: NODE_NVM_VERSION="11" TARGET=TRUNK
- os: linux
env: NODE_NVM_VERSION="10" TARGET=STATIC
- os: linux
env: NODE_NVM_VERSION="10" TARGET=SHARED
- os: linux
env: NODE_NVM_VERSION="10" TARGET=TRUNK
allow_failures:
- env: NODE_NVM_VERSION="16" TARGET=TRUNK
- env: NODE_NVM_VERSION="15" TARGET=TRUNK
- env: NODE_NVM_VERSION="14" TARGET=TRUNK
- env: NODE_NVM_VERSION="13" TARGET=TRUNK
- env: NODE_NVM_VERSION="12" TARGET=TRUNK
- env: NODE_NVM_VERSION="11" TARGET=TRUNK
- env: NODE_NVM_VERSION="10" TARGET=TRUNK
before_install:
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-6 CXXFLAGS=-std=c++14 CC=gcc-6; fi
- COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
- PUBLISH_BINARY=false
- if test "${COMMIT_MESSAGE#*'[publish binary]'}" != "$COMMIT_MESSAGE" && test "${TRAVIS_BRANCH}" == "master" && test "${TRAVIS_PULL_REQUEST}" == "false"; then PUBLISH_BINARY=true; fi;
- REPUBLISH_BINARY=false
- if test "${COMMIT_MESSAGE#*'[republish binary]'}" != "$COMMIT_MESSAGE" && test "${TRAVIS_BRANCH}" == "master" && test "${TRAVIS_PULL_REQUEST}" == "false"; then REPUBLISH_BINARY=true; fi;
- git clone https://github.com/creationix/nvm.git ../.nvm && source ../.nvm/nvm.sh
- nvm install $NODE_NVM_VERSION
- nvm use $NODE_NVM_VERSION
- node --version
- npm --version
- $CXX --version
- NPM_CACHE=$(npm config get cache)
- echo $NPM_CACHE
- if [ -d $NPM_CACHE ]; then sudo chown -R $USER $NPM_CACHE; fi;
install:
- if [[ "${TARGET}" == "TRUNK" ]]; then ./scripts/gdal-trunk.sh; fi;
- if [[ "${TARGET}" == "SHARED" && "$(uname -s)" == "Linux" ]]; then sudo apt-get -qq update; sudo apt-get --force-yes -qq install libgdal-dev libc6-dev; fi;
- if [[ "${TARGET}" == "SHARED" || "${TARGET}" == "TRUNK" ]]; then npm install --build-from-source --shared_gdal; fi;
- if [[ "${TARGET}" == "SHARED" || "${TARGET}" == "TRUNK" ]]; then gdal-config --version --version; fi;
- if [[ "${TARGET}" == "STATIC" ]]; then npm install --build-from-source > /dev/null; fi;
- npm test
script:
- ./node_modules/.bin/node-pre-gyp package testpackage
- npm test
- if [[ "${TARGET}" == "STATIC" && "${PUBLISH_BINARY}" == "true" ]]; then ./node_modules/.bin/node-pre-gyp publish; rm -rf {build,lib/binding}; ./node_modules/.bin/node-pre-gyp install --fallback-to-build=false; npm test; fi
- if [[ "${TARGET}" == "STATIC" && "${REPUBLISH_BINARY}" == "true" ]]; then ./node_modules/.bin/node-pre-gyp unpublish publish; rm -rf {build,lib/binding}; ./node_modules/.bin/node-pre-gyp install --fallback-to-build=false; npm test; fi