forked from Eugeny/fontmanager-redux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (32 loc) · 868 Bytes
/
.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
# setup build matrix
env:
- NODE_VERSION=8
- NODE_VERSION=10
- NODE_VERSION=12
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
os:
- linux
- osx
before_install:
# install nvm if it isn't already installed (the mac VMs don't have it)
- if ! command -v nvm &> /dev/null; then curl -s https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash; fi
- . ~/.nvm/nvm.sh
# install node
- nvm install $NODE_VERSION
- npm config set spin false
- node --version
- npm --version
install:
# on linux, install some dependencies and fonts used for tests
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./travis-linux.sh; fi
# Require c++11 support
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export CXX=g++-4.8; fi
# now, actually install the module
- npm install
script:
- npm test