daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Nov 22nd, 2017 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # merge master changes into branch
  2. git -c "user.name=Circle CI" -c "user.email=example@example.com" pull --no-edit --no-ff origin refs/heads/master
  3.  
  4. # Get changed directories, assuming each dir is an app, you could also do a for loop after to check for certain files which define those directories as apps, e.g. if [ -f "$APP/app.json" ]
  5. CHANGED_APPS=$(git diff --name-status master..$(git symbolic-ref --short HEAD) | awk '{print $2}' | xargs basename)
  6.  
  7. # run builds for $CHANGED_APPS
RAW Paste Data
Top