fasttext-native
Version:
fastText bindings for Node.js
34 lines • 741 B
YAML
language: node_js
os:
- linux
- osx
node_js:
- '8'
- '9'
env:
- CXX=g++-4.9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
cache:
directories:
- $HOME/.npm
before_install:
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then export CXX=clang++; fi
- $CXX --version
- echo $TRAVIS_BRANCH
- echo `git describe --tags --always HEAD`
- npm config set progress false
- npm config set spin false
script:
- npm test
- if [[ $TRAVIS_TAG ]] ||
[[ `git show -s --format=%B $TRAVIS_COMMIT` == *'[publish binary]'* ]];
then
$RUN npm install -g node-pre-gyp-github;
$RUN node_modules/.bin/node-pre-gyp package;
$RUN node-pre-gyp-github publish --release;
fi