-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
48 lines (38 loc) · 892 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
41
42
43
44
45
46
47
48
language: node_js
node_js:
- "6"
jdk:
- oraclejdk7
env:
global:
# Solr 5.1
- SOLR_VERSION="5.1.0"
- SOLR_DOWNLOAD="http://archive.apache.org/dist/lucene/solr/"
- SOLR_FILE=solr-$SOLR_VERSION.tgz
- SOLR_INSTALL_DIR=$TRAVIS_BUILD_DIR/srv/solr-$SOLR_VERSION
matrix:
- NODE_ENV=development
before_install:
- mkdir -p ${SOLR_INSTALL_DIR}
# Solr
- curl -O ${SOLR_DOWNLOAD}${SOLR_VERSION}/${SOLR_FILE}
install:
# Solr
- tar -zxf ${SOLR_FILE} -C ${SOLR_INSTALL_DIR} --strip-components 1
- export PATH=${SOLR_INSTALL_DIR}/bin:$PATH
- npm install
before_script:
- bash ./scripts/solr-startup.sh
# Kick off the default build task
- npm run build
script:
# Test the server
- npm test
after_success:
# Report test coverage
- npm run coveralls
after_script:
- bash ./scripts/solr-teardown.sh
sudo: false
notifications:
email: false