forked from Seneca-CDOT/telescope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (41 loc) · 1.21 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: node_js
node_js:
- lts/*
services:
- redis-server
os:
- 'linux'
- 'osx'
- 'windows'
cache:
directories:
# On OSX, cache homebrew - https://stackoverflow.com/questions/39930171/cache-brew-builds-with-travis-ci?answertab=active#tab-top
- $HOME/Library/Caches/Homebrew
- /usr/local/Homebrew
before_cache:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cleanup; fi
# Cache only .git files under "/usr/local/Homebrew" so "brew update" does not take 5min every build
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then find /usr/local/Homebrew \! -regex ".+\.git.+" -delete; fi
before_install:
# Deal with Redis install per-platform
- echo $TRAVIS_OS_NAME
- echo $PATH
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update && brew install redis && brew services start redis
fi
- |
if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
redis-server --daemonize yes
redis-cli info
else
choco install redis-64 -v
redis-server --service-install
redis-server --service-start
redis-cli info
fi
matrix:
allow_failures:
# Windows can fail if choco can't download redis
# https://github.com/Seneca-CDOT/telescope/issues/387
- os: windows