Skip to content

Commit

Permalink
Merge pull request #2 from RockefellerArchiveCenter/ci
Browse files Browse the repository at this point in the history
Debugs CI
  • Loading branch information
helrond authored Aug 4, 2023
2 parents a511cbe + 212995d commit 849dd07
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist: bionic
language: python
python:
"3.10"
Expand Down Expand Up @@ -29,5 +30,23 @@ script:
after_script:
- docker-compose exec $CONTAINER coverage report --omit=*/migrations/* -m

before_deploy:
- pip install awscli
- docker build -t ${APPLICATION_NAME} --target build .
- if [ ! -d deploy_scripts ]; then git clone https://github.com/RockefellerArchiveCenter/deploy_scripts.git; fi
deploy:
- provider: script
script: >-
bash deploy_scripts/containers/push_image_to_ecr.sh $APPLICATION_NAME &&
bash deploy_scripts/upload_file_to_s3.sh ${APPLICATION_NAME}_template.yaml rac-dev-cloudformation-apps
on:
branch: development
- provider: script
script: >-
bash deploy_scripts/containers/add_tag_to_image.sh $APPLICATION_NAME dev prod &&
bash deploy_scripts/upload_file_to_s3.sh ${APPLICATION_NAME}_template.yaml rac-prod-cloudformation-apps
on:
branch: base

notifications:
email: false
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,5 @@ COPY requirements.txt .
RUN pip install -r requirements.txt
ADD . /code/

FROM base as test
COPY test_requirements.txt .coveragerc ./
RUN pip install -r test_requirements.txt

FROM base as build
EXPOSE 8080
2 changes: 1 addition & 1 deletion digitized_av_qc/config.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ AQUILA_BASEURL = 'https://aquila.dev.rockarch.org' # BaseURL for Aquila instance

AWS_ACCESS_KEY_ID = 'foo' # Access Key ID for AWS user (string)
AWS_SECRET_ACCESS_KEY = 'bar' # Secret Access Key for AWS user (string)
AWS_ROLE_ARN = 'digitized-av-role' # Role ARN for role to be assumed by AWS user (string)
AWS_ROLE_ARN = 'arn:aws:iam::123456789012:role/digitized-av-role' # Role ARN for role to be assumed by AWS user (string)
AWS_REGION = 'us-east-1' # AWS region in which infrastructure is located (string)
AWS_SNS_TOPIC = 'digitized_av_notifications' # ARN for SNS Topic to be posted to (string)
Empty file added digitized_av_qc_template.yaml
Empty file.
1 change: 0 additions & 1 deletion package_review/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def setUp(self):
@mock_sqs
@mock_sts
def test_deliver_message(self):
# TODO
sns = boto3.client('sns', region_name='us-east-1')
topic_arn = sns.create_topic(Name='my-topic')['TopicArn']
sqs_conn = boto3.resource("sqs", region_name="us-east-1")
Expand Down

0 comments on commit 849dd07

Please sign in to comment.