-
Notifications
You must be signed in to change notification settings - Fork 260
/
appveyor.yml
65 lines (54 loc) · 2.15 KB
/
appveyor.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
# # # # # # # # # # # # # # # # # # # # # # # # # #
# ╔═╗╔═╗╔═╗╦ ╦╔═╗╦ ╦╔═╗╦═╗ ┬ ┬┌┬┐┬ #
# ╠═╣╠═╝╠═╝╚╗╔╝║╣ ╚╦╝║ ║╠╦╝ └┬┘││││ #
# ╩ ╩╩ ╩ ╚╝ ╚═╝ ╩ ╚═╝╩╚═o ┴ ┴ ┴┴─┘ #
# #
# This file configures Appveyor CI. #
# (i.e. how we run the tests on Windows) #
# #
# https://www.appveyor.com/docs/lang/nodejs-iojs/ #
# # # # # # # # # # # # # # # # # # # # # # # # # #
# Test against these versions of Node.js.
environment:
WATERLINE_ADAPTER_TESTS_URL: 127.0.0.1/testdb
WATERLINE_ADAPTER_TESTS_HOST: 127.0.0.1
WATERLINE_ADAPTER_TESTS_DATABASE: sails-mongo
NODE_ENV: test
matrix:
- nodejs_version: "16"
- nodejs_version: "18"
- nodejs_version: "20"
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js
# (Not sure what this is for, it's just in Appveyor's example.)
- ps: Install-Product node $env:nodejs_version
# Install declared dependencies
- npm install --no-audit
branches:
only:
- master
- upgrade-mongodb-drivers
- update-test-environment
# Post-install test scripts.
test_script:
# Output Node and NPM version info.
# (Presumably just in case Appveyor decides to try any funny business?
# But seriously, always good to audit this kind of stuff for debugging.)
- node --version
- npm --version
# Run the actual tests.
- npm test
# Setup Mongo Database
services:
- mongodb
# Don't actually build.
# (Not sure what this is for, it's just in Appveyor's example.
# I'm not sure what we're not building... but I'm OK with not
# building it. I guess.)
build: off
# # # # # # # # # # # # # # # # # # # # # # # # # # # #
# TODO: Set up appveyor + mongo*:
# https://www.appveyor.com/docs/services-databases/
# Old example on how to install different versions of MongoDB added to `scripts/appveyor/install_mongodb.ps1`
# # # # # # # # # # # # # # # # # # # # # # # # # # # #