forked from pouchdb-community/pouchdb-authentication
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (57 loc) · 2.45 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
language: node_js
services:
- docker
node_js:
- "6"
sudo: false
addons:
jwt:
# SAUCE_ACCESS_KEY
- secure: PUcJWxBQJ/uGdDzcoI7PcASKJUGujmBRrwCylMHCaygxt2OSwHt7aMaa5phfAfDU/VWG+FAMruDajPsTztXichj94QUqhnTGHeFnv7V0DGJloZVGFz/svzbW2feeDq1enj2lkJUWEHxRIfV8tH7xDBHC16R/WV7g9UFa69GXSXg=
before_install:
# Install PhantomJS and cache it
# See https://github.com/Medium/phantomjs#continuous-integration
- "export PHANTOMJS_VERSION=2.1.1"
- "export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH"
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi"
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
- "phantomjs --version"
# package-lock.json was introduced in npm@5
- npm install -g npm@5 # skip this if you are using node 9
- npm install -g greenkeeper-lockfile@1
before_script:
# update package-lock.json
- greenkeeper-lockfile-update
# run linter before the tests
- npm run lint
after_script:
# upload the updated package-lock.json
- greenkeeper-lockfile-upload
script: npm run $COMMAND
env:
global:
- NPM_CONFIG_PROGRESS="false"
- SAUCE_USERNAME=ptitjes
matrix:
- COMMAND=test-types
- SERVER=couchdb:latest CLIENT=node COMMAND=test
- SERVER=couchdb:latest CLIENT=phantom COMMAND=test
- SERVER=couchdb:1.7.1 CLIENT=node COMMAND=test
- SERVER=couchdb:1.7.1 CLIENT=phantom COMMAND=test
- SERVER=pouchdb-server CLIENT=node COMMAND=test
- SERVER=pouchdb-server CLIENT=phantom COMMAND=test
- SERVER=couchdb:latest CLIENT=saucelabs:Chrome COMMAND=test
- SERVER=couchdb:latest CLIENT=saucelabs:Firefox COMMAND=test
- SERVER=couchdb:latest CLIENT=saucelabs:Safari COMMAND=test
- SERVER=couchdb:latest CLIENT="saucelabs:Internet Explorer:10:Windows 8" COMMAND=test
- SERVER=couchdb:latest CLIENT="saucelabs:Internet Explorer:11:Windows 10" COMMAND=test
branches:
only:
- master
- /^greenkeeper/.*$/
cache:
directories:
- $HOME/.npm
# See https://github.com/Medium/phantomjs#continuous-integration
- travis_phantomjs