-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from mozilla-iam/fix_ci
Fix ci - and attempt to deploy dev
- Loading branch information
Showing
5 changed files
with
32 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ language: python | |
python: | ||
- 3.6 | ||
script: | ||
- python -m unittest discover tests | ||
- make test |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
S3_BUCKET := ${S3_BUCKET} | ||
|
||
.PHONY: test | ||
test: | ||
pip install pyyaml | ||
python -m unittest discover tests | ||
|
||
.PHONY: deploy | ||
deploy: test | ||
aws s3 sync . s3://$(S3_BUCKET) |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
echo "Begin deploy of the apps.yml file." | ||
echo "$CODEBUILD_WEBHOOK_TRIGGER" | ||
|
||
if [[ "branch/master" == "$CODEBUILD_WEBHOOK_TRIGGER" ]] | ||
then | ||
echo "Deploying to the development CDN cdn.sso.allizom.org" | ||
make deploy S3_BUCKET=sso-dashboard.configuration | ||
elif [[ "$CODEBUILD_WEBHOOK_TRIGGER" =~ ^tag\/[0-9]\.[0-9]\.[0-9](\-(prod))?$ ]] | ||
then | ||
echo "Deploying to the production CDN cdn.sso.mozilla.com" | ||
make deploy S3_BUCKET=sso-dashboard.configuration-prod | ||
fi | ||
|
||
echo "$CODEBUILD_WEBHOOK_TRIGGER" | ||
echo "End deploy of the apps.yml." |