forked from balderdashy/sails-mongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (54 loc) · 1.74 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
# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# ╔╦╗╦═╗╔═╗╦ ╦╦╔═╗ ┬ ┬┌┬┐┬ #
# ║ ╠╦╝╠═╣╚╗╔╝║╚═╗ └┬┘││││ #
# o ╩ ╩╚═╩ ╩ ╚╝ ╩╚═╝o ┴ ┴ ┴┴─┘ #
# #
# This file configures Travis CI. #
# (i.e. how we run the tests... mainly) #
# #
# https://docs.travis-ci.com/user/customizing-the-build #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
dist: xenial
language: node_js
node_js:
- "10"
- "12"
- "14"
env:
global:
- WATERLINE_ADAPTER_TESTS_URL=localhost/testdb
- WATERLINE_ADAPTER_TESTS_HOST=localhost
- WATERLINE_ADAPTER_TESTS_DATABASE=sails-mongo
- NODE_ENV=test
matrix:
- MONGODB=3.6.18
- MONGODB=4.0.18
- MONGODB=4.2.7
cache:
directories:
- "$TRAVIS_BUILD_DIR/mongodb"
- "$HOME/.npm"
matrix:
fast_finish: true
before_install:
- chmod +x "$TRAVIS_BUILD_DIR/scripts/travis/install_mongodb.sh" "$TRAVIS_BUILD_DIR/scripts/travis/run_mongodb.sh"
install:
# Don't let npm send metrics as it creates a file in the .npm folder invalidating the cache every time
- npm config set send-metrics false
- npm i --no-audit
- "$TRAVIS_BUILD_DIR/scripts/travis/install_mongodb.sh"
before_script:
- "$TRAVIS_BUILD_DIR/scripts/travis/run_mongodb.sh"
script:
- npm test
after_script:
- pkill mongod
branches:
only:
- master
- upgrade-mongodb-drivers
- update-test-environment
notifications:
email: