Skip to content

Commit 79426a6

Browse files
author
Sarah Simpers
committed
Adds evergreen file
1 parent be4c453 commit 79426a6

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.evergreen.yaml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
buildvariants:
3+
- display_name: "Ubuntu 18.04"
4+
expansions:
5+
venv: venv/bin
6+
name: ubuntu1804
7+
run_on:
8+
- ubuntu1804-test
9+
tasks:
10+
- name: build-atlas-cli-docs
11+
tasks:
12+
- commands:
13+
- command: git.get_project
14+
params:
15+
directory: docs-atlas-cli
16+
recurse_submodules: true
17+
type: setup
18+
- command: shell.exec
19+
params:
20+
script: |
21+
# Remove existing Virtual Environment Directory
22+
rm -rf venv
23+
# Set new Virtual Environment with Python 3
24+
virtualenv -p python3 venv
25+
# Set Build Directory
26+
BUILDHOME=$PWD
27+
# Add Virtual Environment Path to Path
28+
PATH=$PATH:$PWD/${venv}
29+
# Activate Virtual Environment
30+
source ${venv}/activate
31+
cd venv
32+
mkdir dev
33+
cd dev
34+
# Install Current Version of mut
35+
$BUILDHOME/${venv}/python3 -m pip install mut
36+
shell: bash
37+
working_dir: docs-atlas-cli
38+
- command: shell.exec
39+
params:
40+
script: |
41+
# remember that this script should be silent if it
42+
# manipulates keys.
43+
echo "export AWS_ACCESS_KEY_ID=${aws_key}" > aws-config.sh
44+
echo "export AWS_SECRET_ACCESS_KEY=${aws_secret}" >> aws-config.sh
45+
echo "export STAGING_USERNAME=${github_author}" >> aws-config.sh
46+
chmod 755 aws-config.sh
47+
shell: bash
48+
silent: true
49+
working_dir: docs-atlas-cli
50+
-
51+
command: shell.exec
52+
loggers:
53+
task:
54+
- type: evergreen
55+
- type: file
56+
params:
57+
script: |
58+
# Get AWS Variables
59+
source aws-config.sh
60+
export GIT_BRANCH="${github_pr_number}"
61+
# Activate Virtual Environment
62+
source ${venv}/activate
63+
if [ "${is_patch}" != "true" ]; then
64+
make html
65+
else
66+
make html
67+
make stage
68+
fi
69+
shell: bash
70+
working_dir: docs-atlas-cli
71+
name: build-atlas-cli-docs

0 commit comments

Comments
 (0)