-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (40 loc) · 2.07 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: cpp
dist: xenial
env:
matrix:
- TRAVIS_NODE_VERSION="stable"
os:
- linux
- osx
- windows
compiler: gcc
cache:
directories:
- node_modules
git:
depth: 5
before_install:
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm
&& git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh; fi
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then nvm install $TRAVIS_NODE_VERSION; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install nodejs; fi # Workaround on Windows for NVM
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then eval $(powershell -NonInteractive -Command 'write("export PATH=`"" + ([Environment]::GetEnvironmentVariable("PATH","Machine") + ";" + [Environment]::GetEnvironmentVariable("PATH","User") + ";" + [Environment]::GetEnvironmentVariable("NVM_HOME","Machine") + ";" + [Environment]::GetEnvironmentVariable("NVM_SYMLINK","Machine")).replace("\","/").replace("C:","/c").replace(";",":") + ":`$PATH`"")'); fi
- PATH=$PATH:`pwd`/node_modules/.bin
- node --version
- npm --version
- "$CXX --version"
install:
- npm install
script:
- npm run build
after_success:
- if [ -n "$TRAVIS_TAG" ]; then npm run prebuild -- -u $GITHUB_TOKEN; fi
deploy:
provider: npm
email: [email protected]
api_key:
secure: PipmUL2BiVAyXLHJRxQnGBClIVAPAZGfBSyyoRMRzPgMlVmSiB728Z6xIfRLSrODv+U8P64hhRqcZ39Gyne4KANNu6bMa43f/xlWKQPMlF6HUdNQPdWI4Aj0tr9qldXCEBE4mKHoIz2Wd4nbev6sbhDycaYxWlmPb7LKUYmxaanYJwTDg+wCwACS5+IKvwsphQ0/fqMTquO4Vz6kXV8Mn30QAv0MnjU4sEdRPf3rmEpSfQYiQcwU4jnBhUFRb98NUo6vD3Gs5Hy50ZnxG9mPfwFJgb/JsoOnpgHBfOymfH1oYdhs8LtUk7YFdUDZMJ43vzHxxy7PPnJjjSxIHyh+RCvM4W1tLyTyEMk4zzA+Emh/8hmCwYuMVMgRJgixTYvbI/EZG6ncRoOeMnjElJTe3B1Md9fo+sd7Sg5wtYT09IDgF1wMhMYZ3J26ibPHTuRvr7G0hHX5vw9HUoPx92UbHLBTcp+kAGzSkpScAXBjJSSr7ikRoJ1AUTvtzoIMENExoMO//3qqvWBs6aaXtF0261mlrWCob30giLu93vHmQcov+PVPMusDXS8KEGHZ+6DWlOyaRp0wlJzn0qWagx3hnLfxlYzHZWbvosaCj8/Qkw72mdHK6Ex0gCe0i6Ofi0tFSICZwjh9qd+9XjNH8RSxNB0r5ixmENaC2d89KbRnxbo=
on:
tags: true
repo: DanielMcAssey/sourceid-2-coordinates
skip_cleanup: 'true'