electron-rebuild
Version:
Electron supporting package to rebuild native node modules against the currently installed electron
35 lines (29 loc) • 800 B
YAML
language: node_js
node_js: '6'
cache: npm
os:
- linux
- osx
- windows
dist: xenial
env:
global:
- CC=clang CXX=clang++ npm_config_clang=1
branches:
only:
- master
- /^v\d+\.\d+\.\d+/
before_install:
- |
if [[ "$TRAVIS_OS_NAME" = "windows" ]]; then
choco install vcbuildtools
export NPM_CONFIG_PREFIX=c:\\custom_npm PATH="/c/custom_npm:$PATH" VCTargetsPath="C:\\Program Files (x86)\\MSBuild\\Microsoft.cpp\\v4.0\\v140"
npm install -g npm@6
npm config set msvs_version 2015 --global
fi
before_script:
# remove "electron" folder for electron-locater tests
- |
if [[ "$TRAVIS_REPO_SLUG" = "electron/electron-rebuild" ]]; then
cd ../../ && mv ./$TRAVIS_REPO_SLUG ./electron-rebuild && rm -rf ./electron && cd ./electron-rebuild/
fi