Skip to content

Commit

Permalink
Fix syntax and spelling error in circle deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabyalter committed May 24, 2017
1 parent d9a8812 commit 02acf82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
name: Deploy
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
echo "Deploying to production"
curl -u $JENKINS_USERNAME:$JENKINS_API_KEY -X POST http://jenkins.library.nyu.edu/view/MaRLI/job/MaRLI%20Production%20Deploy/build/api
elif [ "${CIRLCE_BRANCH}" ~= (feature|bug|hotfix|chore)\/(.+) ]; then
elif [[ "${CIRCLE_BRANCH}" =~ (feature|bug|hotfix|chore)\/(.+) ]]; then
echo "Deploying to development"
curl -u $JENKINS_USERNAME:$JENKINS_API_KEY -X POST http://jenkins.library.nyu.edu/view/MaRLI/job/MaRLI%20Development%20Deploy/build/api
fi
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ database:
override:
- docker-compose run web rake db:create
- docker-compose run -e RAILS_ENV=test web rake db:setup

test:
override:
- docker-compose run -e RAILS_ENV=test web rake
Expand Down

0 comments on commit 02acf82

Please sign in to comment.