-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
27 lines (27 loc) · 948 Bytes
/
buildspec.yml
File metadata and controls
27 lines (27 loc) · 948 Bytes
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
version: 0.2
phases:
install:
runtime-versions:
python: 3.7
pre_build:
commands:
- export NORMAL_BRANCH=$(echo $CODEBUILD_WEBHOOK_TRIGGER | sed 's/branch\///' | sed 's/pr\///')
- pip install -qq -U pip wheel
- pip install -r requirements-dev.txt
- pip install junit2html
- mkdir /tmp/artifacts
- pytest --junit-xml=junit.xml --cov-branch --cov-report=xml --cov=juicebox_cli -vvv
- junit2html junit.xml || true
- mv junit.xml.html coverage.xml /tmp/artifacts/
build:
commands:
- cd docs
- make html
- |
if [ "$NORMAL_BRANCH" = "master" ]; then
aws s3 sync build/html s3://internal.juiceboxdata.com/projects/juicebox-cli --acl bucket-owner-full-control --delete
aws s3 sync build/html s3://docs.juiceboxdata.com/projects/juicebox-cli --acl bucket-owner-full-control --delete
fi
artifacts:
files:
- /tmp/artifacts/*