Skip to content

Commit

Permalink
Set up CI with Azure Pipelines (jamesyonan#5)
Browse files Browse the repository at this point in the history
* Set up CI with Azure Pipelines

[skip ci]

* Update pipeline to install brenda. Update README
  • Loading branch information
msmith93 authored Aug 17, 2020
1 parent 6a2404a commit 038a863
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Tutorial (basic use)

### First steps

This tutorial is intended for use on macOS or Linux, and Python 2 is required.
This tutorial is intended for use on macOS or Linux, and Python 3 is required.

If you don't have an AWS (Amazon Web Services) account, sign up
for one now.
Expand All @@ -113,8 +113,8 @@ Next, download and install Brenda on the client machine.

$ git clone http://github.com/msmith93/brenda.git
$ cd brenda
$ pip3 install -r requirements.txt
$ pip3 install .
$ pip install -r requirements.txt
$ pip install .

### EC2 key pair setup

Expand Down
39 changes: 39 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Python package
# Create and test a Python package on multiple Python versions.
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/python

trigger:
branches:
include:
- "*"

pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python27:
python.version: '2.7'
Python35:
python.version: '3.5'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'

- script: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install .
displayName: 'Install dependencies'

- script: |
pip install pytest pytest-azurepipelines
echo "Running pytest"
displayName: 'pytest'

2 comments on commit 038a863

@blendgoat
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolute life saver! new to the command line life. been struggling with the 2014 docs. WHat a find this is! thank you so much man

@blendgoat
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, i dont know if you still check here from time to time, but wanted to ask

on the brenda.conf file

S3_REGION=us-east-1
BLENDER_PROJECT=s3://mksmithbrenda/cube_rotate.tar.gz
WORK_QUEUE=sqs://mksmithtestworkqueue
RENDER_OUTPUT=s3://troubleinparadise
WORK_DIR=$HOME/blender_projects/brenda/test/work
RUNNING_ON_EC2=0
#DONE=shutdown
DONE=poll

Which directory is this referring to?
"WORK_DIR=$HOME/blender_projects/brenda/test/work"

Home/my project (blend file) name / brenda / test or work on my client side computer? or on the Ec2 instance AMI running blender? Also do i also have to upload project files to the ami, or i can just use this:

INSTANCE_TYPE=m3.xlarge
BLENDER_PROJECT=s3://eastmainprojct/deswalk.tar.gz
WORK_QUEUE=sqs://FRAME_BUCKET
RENDER_OUTPUT=s3://projectdloadmain
DONE=shutdown

because i tried the first one and no luck :( but i assume its the current one and it possible its because i cant quite figure out what the WORK_DIR refers to.

Any help will be appreciated.

Thanks

Please sign in to comment.