-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- test against Node.js v17, v18 - Test against MongoDB v3.6 and v5.0 - fix Travis CI config see: loopbackio/cicd#27 Signed-off-by: Rifa Achrinza <[email protected]>
- Loading branch information
Showing
3 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
branches: | ||
only: 5.x | ||
arch: arm64 | ||
services: docker | ||
language: node_js | ||
node_js: | ||
- "10" | ||
- "12" | ||
- "14" | ||
|
||
- 10 | ||
- 12 | ||
- 14 | ||
- 16 | ||
- 17 | ||
- 18 | ||
env: | ||
- CXX=g++-4.8 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- mongodb-3.2-precise | ||
packages: | ||
- g++-4.8 | ||
- mongodb-org-server | ||
- mongodb-org-shell | ||
services: | ||
- mongodb | ||
|
||
after_success: npm run coverage | ||
- MONGO_VERSION=3.6 | ||
- MONGO_VERSION=4.4 | ||
- MONGO_VERSION=5.0 | ||
before_install: | | ||
docker run --name=mongodb --publish=27017:27017 --detach mongo:"$MONGO_VERSION" | ||
until docker exec --tty mongodb mongo --port=27017 --eval='db.serverStatus()' | ||
do | ||
sleep 1 | ||
echo "." | ||
TIMER="$(TIMER + 1)" | ||
if [ "$TIMER" -eq 20 ]; then | ||
echo "MongoDB did not initialize within 20 seconds. Exiting." | ||
exit 2 | ||
fi | ||
done | ||
install: npm ci --ignore-scripts | ||
script: npm run-script test:ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters