-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy path.travis.yml
More file actions
45 lines (35 loc) · 1.4 KB
/
.travis.yml
File metadata and controls
45 lines (35 loc) · 1.4 KB
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
os: linux
dist: jammy
language: go
go:
- 1.25.7
services:
- docker
env:
global:
- MONGODB=6.0.23
- MONGOSH=2.5.1
jobs:
- PLUGINS_VISIBILITY=public
- PLUGINS_VISIBILITY=private
cache:
directories:
- $HOME/.cache/go-build
before_install:
# Remove broken RabbitMQ repos
- sudo rm -f /etc/apt/sources.list.d/rabbitmq*
- sudo apt-get update
- sudo apt-get install --allow-downgrades -y docker-buildx-plugin mongodb-org=${MONGODB} mongodb-org-database=${MONGODB} mongodb-org-server=${MONGODB} mongodb-mongosh=${MONGOSH} mongodb-org-mongos=${MONGODB} mongodb-org-tools
- mkdir -p /var/ramfs/mongodb/data
- /usr/bin/mongod --dbpath /var/ramfs/mongodb/data --bind_ip 127.0.0.1 --replSet rs0 --logpath /var/ramfs/mongodb/mongod.log &> /dev/null &
- until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done
- /usr/bin/mongosh --eval 'rs.initiate(); while (rs.status().startupStatus || (rs.status().hasOwnProperty("myState") && rs.status().myState != 1)) { printjson( rs.status() ); sleep(1000); }; printjson( rs.status() );'
- echo -e "machine github.com\n login $GITHUB_TOKEN" > ~/.netrc
addons:
apt:
sources:
- sourceline: 'deb https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse'
key_url: 'https://pgp.mongodb.com/server-6.0.asc'
script:
- export TIMING_CMD='time -p'
- make "plugins-visibility-${PLUGINS_VISIBILITY}" && make ci