-
Notifications
You must be signed in to change notification settings - Fork 31
/
.travis.yml
29 lines (24 loc) · 915 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
language: node_js
sudo: required
services:
- docker
os:
- linux
- osx
osx_image: xcode9.3
install:
- export PREBUILD_SLUG=$TRAVIS_REPO_SLUG
- export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig" #node-gfx/node-canvas-prebuilt#76
- >- # this should only run on linux
if [ $TRAVIS_OS_NAME = "linux" ]; then
docker run
-e PREBUILD_VERSION="$PREBUILD_VERSION"
-e PREBUILD_AUTH="$PREBUILD_AUTH"
-e PREBUILD_SLUG="$TRAVIS_REPO_SLUG"
-e PREBUILD_NODE_VERSIONS="$PREBUILD_NODE_VERSIONS"
-v $(pwd):/build chearon/canvas-prebuilt:7
bash -c 'cd /build; export NVM_DIR=$HOME/.nvm; . $HOME/.nvm/nvm.sh; . ci/install.sh linux '"\"$PREBUILD_VERSION\" \"$PREBUILD_CANVAS_VERSION\" \"$PREBUILD_NODE_VERSIONS\"";
else
export PREBUILD_SLUG="$TRAVIS_REPO_SLUG";
bash ci/install.sh osx "$PREBUILD_VERSION" "$PREBUILD_CANVAS_VERSION" "$PREBUILD_NODE_VERSIONS";
fi