-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
56 lines (56 loc) · 2.63 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
language: node_js
dist: trusty
node_js:
- '10.14'
addons:
postgresql: '9.5'
apt:
packages:
- postgresql-9.5-postgis-2.3
notifications:
email:
on_success: never
on_failure: always
branches:
only:
- master
- "/^[0-9]+.[0-9]+.[0-9]+(-.*)?$/"
- "/^greenkeeper/.*$/"
cache:
directories:
- "$HOME/.npm"
- "$HOME/.mongodb/versions"
jobs:
include:
- stage: benchmark
before_script:
- npm install -g mongodb-runner
- MONGODB_VERSION=4.0.4 MONGODB_TOPOLOGY=replicaset MONGODB_STORAGE_ENGINE=wiredTiger
mongodb-runner start
- psql -c 'create database parse_benchmark;' -U postgres
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d parse_benchmark
- psql -c 'CREATE EXTENSION postgis_topology;' -U postgres -d parse_benchmark
script:
- npm run lint
- npm test -- --maxWorkers=4
- npm start -- run -c 1 -p 1 -d 2
- if [ ! -e "result.json" ]; then exit 1; fi
after_script:
- bash <(curl -s https://codecov.io/bash)
- stage: release
node_js: '10'
env:
before_script: skip
after_script: skip
script: skip
deploy:
- provider: npm
api_key:
secure: Yrng6jsnMAtzrrln9DwRuY4xpcxl/WYS/1A5fckyQF6DsLmNlvqVtu3MWF+zdJgANF63G3jIee11tNBpYRecHl8FjPGwO0kc1vEgvIRVnveyR0bwIIDH6s/mR9dg4rZikflwG4XExsLyaQd7ko8aTIOIayfxJiv/u0yqwuBuBW2bFrL/41b1cKGK5+Iq2a+PdFENUPenKXISkACGaMnQF4Y/KVF98UwCiGLf957yFWc2sD6TFbjNDbAENSccvg1J3fBb+djbtzKzldl29ntp2mKVGSVASiKCRa6hSfgQulHiidFqFIKgpYJ1uATRr3UFr/NRV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: true
repo: parse-community/benchmark