Skip to content

Commit 74c85d1

Browse files
authored
Add evergreen (#786)
* evergreen * parent aa529c24e9cf80a803b50dcec2902da165d9bb73 author Nathan Leniz <[email protected]> 1640617840 -0800 committer Nathan Leniz <[email protected]> 1640833472 -0800 add evergreen config file testing more testing update snooty tst tst more test test trigger remove broken links rc4 broken links good links * move evergreen file location and add daily check
1 parent d71a2c7 commit 74c85d1

File tree

4 files changed

+79
-3
lines changed

4 files changed

+79
-3
lines changed

.evergreen/dailygreen.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Evergreen Project Config
2+
3+
# When a task that used to pass starts to fail
4+
# Go through all versions that may have been skipped to detect
5+
# when the task started failing
6+
stepback: true
7+
8+
# Mark a failure as a system/bootstrap failure (purple box) rather then a task
9+
# failure by default.
10+
# Actual testing tasks are marked with `type: test`
11+
command_type: system
12+
13+
# Protect ourself against rogue test case, or curl gone wild, that runs forever
14+
# 12 minutes is the longest we'll ever run
15+
exec_timeout_secs: 3600 # 12 minutes is the longest we'll ever run
16+
17+
# What to do when evergreen hits the timeout (`post:` tasks are run automatically)
18+
timeout:
19+
- command: shell.exec
20+
params:
21+
script: |
22+
ls -la
23+
24+
functions:
25+
"fetch source":
26+
- command: git.get_project
27+
params:
28+
directory: docs-ecosystem
29+
30+
31+
"install checker tool":
32+
- command: shell.exec
33+
type: system
34+
params:
35+
shell: bash
36+
working_dir: docs-ecosystem
37+
script: |
38+
export GOPATH=$(dirname $(dirname $(dirname `pwd`)))
39+
export GOROOT='/opt/golang/go1.16'
40+
export PATH=$GOROOT/bin:$GOPATH/bin/:$PATH
41+
42+
go install github.com/terakilobyte/checker@rc4
43+
44+
45+
"run dialy":
46+
- command: shell.exec
47+
type: test
48+
params:
49+
shell: bash
50+
working_dir: docs-ecosystem
51+
script: |
52+
export GOPATH=$(dirname $(dirname $(dirname `pwd`)))
53+
export GOROOT='/opt/golang/go1.16'
54+
export PATH=$GOROOT/bin:$GOPATH/bin/:$PATH
55+
56+
checker --path .
57+
58+
pre:
59+
- func: "fetch source"
60+
- func: "install checker tool"
61+
62+
tasks:
63+
64+
- name: check
65+
commands:
66+
- func: "run daily"
67+
68+
buildvariants:
69+
70+
- name: ubuntu2004
71+
display_name: Ubuntu 20.04
72+
run_on: [ ubuntu2004-large ]
73+
tasks:
74+
- name: check

evergreen.yml renamed to .evergreen/evergreen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ functions:
3939
export GOROOT='/opt/golang/go1.16'
4040
export PATH=$GOROOT/bin:$GOPATH/bin/:$PATH
4141
42-
go install github.com/terakilobyte/checker@rc2 > /dev/null > 2>&1
42+
go install github.com/terakilobyte/checker@rc4
4343
4444
4545
"run checker":

snooty.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ toc_landing_pages = ["/python", "/php", "/java-drivers", "/use-cases"]
66
intersphinx = [ "https://docs.mongodb.com/master/objects.inv"]
77

88
[constants]
9-
version = 4.0
9+
version = "4.0"
1010
package-name-org = "docs-ecosystem"
1111
pgp-version = "{+version+}"
1212
csharp-docs-versioned = "https://mongodb.github.io/mongo-csharp-driver/2.14"
1313

14-
java-version = 4.4
14+
java-version = "4.4"
1515
java-api = "https://mongodb.github.io/mongo-java-driver/{+java-version+}"

source/rust.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ corresponding connection code samples.
118118
Connect to a MongoDB Server on Your Local Machine
119119
-------------------------------------------------
120120

121+
.. include:: /includes/localhost-connection.rst
122+
121123
To test whether you can connect to your server, replace the connection
122124
string in the :ref:`Connect to MongoDB Atlas <connect-atlas-rust-driver>` code
123125
example and run it.

0 commit comments

Comments
 (0)