Skip to content

Tutorials: maven, clojure, travis ... and much more

Notifications You must be signed in to change notification settings

rsucasasf/tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tutorials

Mini tutorials and links collections. The content of each of the table of contents' main sections can be found in their respective folders, except the Others content which is located in this document.


Table of Contents / Folders


Continuous Integration

  • Tests / builds

    • Travis

    • codeship

      Codeship is a fully customizable Continuous Integration service in the cloud.

  • Code coverage

    • codecov

      Codecov provides highly integrated tools to group, merge, archive and compare coverage reports. Whether your team is comparing changes in a pull request or reviewing a single commit, Codecov will improve the code review workflow and quality.

Markdown tips and links

Markdown License badges

Other badges from shields.io

jMonkeyEngine

jMonkeyEngine Tutorials and Documentation

Github / Bitbucket

Include external project (from repo)

  1. git submodule add https://bitbucket.org/jaredw/awesomelibrary awesomelibrary

  2. commit & push

Configure bitbucket-pipelines.yml

pipelines use docker images.

https://stackoverflow.com/questions/40166537/is-it-possible-to-use-multiple-docker-images-in-bitbucket-pipeline

Configure bitbucket-pipelines.yml

# This is a sample build configuration.
# Only use spaces to indent your bitbucket-pipelines.yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:4.6.0

pipelines:
  custom: # Pipelines that are triggered manually
    sonar: # The name that is displayed in the list in the Bitbucket Cloud GUI
      - step:
          script:
            - echo "Manual triggers for Sonar are awesome!"
    deployment-to-prod: # Another display name
      - step:
          script:
            - echo "Manual triggers for deployments are awesome!"
  branches:  # Pipelines that run automatically on a commit to a branch
    staging:
      - step:
          script:
            - echo "Automated pipelines are cool too."

Readme markup tips / examples

Icons for markup: http://www.webpagefx.com/tools/emoji-cheat-sheet/

NOTE: This article was taken from https://github.com/Kunena/Kunena-Forum/wiki

In your github fork, you need to keep your master branch clean, by clean I mean without any changes, like that you can create at any time a branch from your master. Each time, that you want to commit a bug or a feature, you need to create a branch for it, which will be a copy of your master branch.

When you do a pull request on a branch, you can continue to work on another branch and make another pull request on this other branch.

Before creating a new branch, pull the changes from upstream. Your master needs to be up to date.

Create the branch on your local machine and switch in this branch :

$ git checkout -b [name_of_your_new_branch]

Change working branch :

$ git checkout [name_of_your_new_branch]

Push the branch on github :

$ git push origin [name_of_your_new_branch]

When you want to commit something in your branch, be sure to be in your branch.

You can see all branches created by using :

$ git branch

Which will show :

* approval_messages
  master
  master_clean

Add a new remote for your branch :

$ git remote add [name_of_your_remote] 

Push changes from your commit into your branch :

$ git push [name_of_your_new_remote] [name_of_your_branch]

Update your branch when the original branch from official repository has been updated :

$ git fetch [name_of_your_remote]

Then you need to apply to merge changes, if your branch is derivated from develop you need to do :

$ git merge [name_of_your_remote]/develop

Delete a branch on your local filesystem :

$ git branch -d [name_of_your_new_branch]

To force the deletion of local branch on your filesystem :

$ git branch -D [name_of_your_new_branch]

Delete the branch on github :

$ git push origin :[name_of_your_new_branch]

The only difference is the : to say delete, you can do it too by using github interface to remove branch : https://help.github.com/articles/deleting-unused-branches.

If you want to change default branch, it's so easy with github, in your fork go into Admin and in the drop-down list default branch choose what you want.

About

Tutorials: maven, clojure, travis ... and much more

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published