Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI #18

Open
petrosh opened this issue Jun 24, 2016 · 1 comment
Open

CI #18

petrosh opened this issue Jun 24, 2016 · 1 comment
Labels

Comments

@petrosh petrosh changed the title JS DOM JS DOM – Template Append and Insert Elements CSS Console Storage Aug 27, 2016
@petrosh petrosh mentioned this issue Dec 26, 2016
@petrosh petrosh changed the title JS DOM – Template Append and Insert Elements CSS Console Storage CI Dec 26, 2016
@petrosh petrosh added CI and removed Javascript labels Dec 26, 2016
@petrosh
Copy link
Owner Author

petrosh commented Dec 27, 2016

Snippet

echo CHECKOUT...
git fetch origin refs/pull/$TRAVIS_PULL_REQUEST/head:$TRAVIS_PULL_REQUEST_BRANCH
git clone $REPO builds
cd builds
git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
cd ..
ls

echo prettyformat an - cn - D:
git log -p -1 --pretty=format:"%an - %cn"

printf "\n***\n"

echo log namestatus
git log -p -1 --name-status

printf "\n***\n"

echo cached
git diff --cached --name-only

printf "\n***\n"

echo prettyformat commit hash H:
git log -1 --pretty=format:"%H"

printf "\n---\n"

SHA=`git rev-parse --verify HEAD`
echo SHA: $SHA

echo List of all files changed in a commit
git diff-tree --no-commit-id --name-only -r $SHA

printf "\n---\n"

echo difftree:
git diff-tree --no-commit-id --name-only -r $SHA

printf "\n---\n"

echo trackedfiles
git ls-files -t

printf "\n---\n"

echo branch: $TRAVIS_BRANCH
echo sourcebranch: $TRAVIS_SOURCE_BRANCH
echo pr: $TRAVIS_PULL_REQUEST
echo PRbranch: $TRAVIS_PULL_REQUEST_BRANCH

printf "\n---\n"

# pull guy (extended name)
echo PR_USER: ${PR_USER:-`git log -1 --pretty=format:"%an"`}

# SSH_REPO=${REPO}
echo repo $REPO $SSH_REPO

echo GITHUB_URL ${GITHUB_URL:-`git config remote.origin.url`}
printf "\n---\n"

echo Get list of all remote references
git remote

printf "\n---\n"

echo show sha nameonly
git show $SHA --name-only

printf "\n---\n"

echo Get only remote branches
git branch -r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant