Git, Gradle andTravis CI:
a short guide to start with them
Mercoledì, febbraio 1, 17 Marialaura Bancheri 1
New Project
1)  Create your project on Eclipse
2)  Create you repo on gitHub and save the https
3)  git init (to initialize the new repository)
4)  git remote add origin https://yourhttps
5)  git status
6)  git add ( the changes or the new files)
7)  git commit –m “first commit”
8)  git push origin master
Mercoledì, febbraio 1, 17 Marialaura Bancheri 2
New Branch
1)  git checkout -b HelloWorldMonday
2)  do your changes on the branch..(git add, commit,
push origin HelloWorldMonday)
3)  git checkout master
4)  git merge HelloWorldMonday
5)  git push origin master
6)  git branch –d HelloWorldMonday
Mercoledì, febbraio 1, 17 Marialaura Bancheri 3
Copying an existing project
1)  git clone https//yourhttps
2)  import from eclipse an existing project into
workspace
Mercoledì, febbraio 1, 17 Marialaura Bancheri 4
Also useful
-  git status
-  git pull (to upgrade the repo)
-  git log (to see the history of the repo)
-  git tag -a v0.1 -m "Just another test"
-  git push origin v0.1
-  git rm (to remove undesired files)
-  http://rogerdudler.github.io/git-guide/
Mercoledì, febbraio 1, 17 Marialaura Bancheri 5
Gradle: how to create a new project
1) Install Gradle plugin on Eclipse (help àEclipse
Marketplace)
Mercoledì, febbraio 1, 17 Marialaura Bancheri 6
Gradle: how to create a new project
2) Create a new Gradle Project - 1/2
Mercoledì, febbraio 1, 17 Marialaura Bancheri 7
Gradle: how to create a new project
3) Create a new Gradle Project -2/2
Mercoledì, febbraio 1, 17 Marialaura Bancheri 8
Gradle: what’s in a Gradle project?
Mercoledì, febbraio 1, 17 Marialaura Bancheri 9
Codes
Tests
build.gradle
!!!
Gradle: what’s more in a Gradle
project respect to an Eclipse project?
Mercoledì, febbraio 1, 17 Marialaura Bancheri 10
build.gradle
Mercoledì, febbraio 1, 17 Marialaura Bancheri 11
build.gradle – Water Budget Project
Mercoledì, febbraio 1, 17 Marialaura Bancheri 12
build.gradle – Water Budget Project
Mercoledì, febbraio 1, 17 Marialaura Bancheri 13
How to transform an old project
into a Gradle project
Mercoledì, febbraio 1, 17 Marialaura Bancheri 14
1)  Clone the project https://github.com/Mariolina88/HelloWorldWithTest.git
2)  Open the project and see how it is organized
3)  Reorganize sub-folders :
src/main/java/helloWorldWithTest/HelloWorldWithTest.java
src/test/java/test/HelloWorldTest.java
4)  Create or import the build.gradle file (see the folder helps of the project)
5)  Import the project in eclipse as a Gradle Project and test it!
Create a new repo!
Mercoledì, febbraio 1, 17 Marialaura Bancheri 15
1)  Create a repo on your personal git profile with the Gradle HelloWorld!
2) Push your changes on it:
- First way: delete the folder .git from your project and start with the new
repo! (see slide 2, points 3-8);
- Second way:
git remote –v (to check the old remote)
git remote set-url origin https://yourhttps
git remote –v (to check the new remote)
git status (it is always good to see what’s going on)
git push origin master
Travis CI
Mercoledì, febbraio 1, 17 Marialaura Bancheri 16
1) Go on your new repository page
Travis CI
Mercoledì, febbraio 1, 17 Marialaura Bancheri 17
2) Settings à Integrations and services
3) Add service and find Travis CI
Travis CI
Mercoledì, febbraio 1, 17 Marialaura Bancheri 18
4) Click on https://travis-ci.org/profile
Travis CI
Mercoledì, febbraio 1, 17 Marialaura Bancheri 19
5) Sing in with GitHub
Travis CI
Mercoledì, febbraio 1, 17 Marialaura Bancheri 20
6) Find in the list of your repos, the HelloWorldWithGradleTest and activate it
Travis CI
Mercoledì, febbraio 1, 17 Marialaura Bancheri 21
6) Creat the file travis.yml for the project
(see the folder helps of the project)
Travis CI
Mercoledì, febbraio 1, 17 Marialaura Bancheri 22
6) Add the file travis.yml to the project and commit to the repo
7) if everything is working you will see in the commit page a green thick
Travis CI
Mercoledì, febbraio 1, 17 Marialaura Bancheri 23
8) Click on the thick and see the Travis page with the info on
the test
Travis CI
Mercoledì, febbraio 1, 17 Marialaura Bancheri 24
More info can be found at:
Getting started:
https://docs.travis-ci.com/user/getting-started/
Encryption key:
https://docs.travis-ci.com/user/encryption-keys/
That’s all folks!
Mercoledì, febbraio 1, 17 Marialaura Bancheri 25

More Related Content

PDF
Git Going at JavaZone 2010
PPTX
Version control system & how to use git
PDF
Introduction to Git for Artists
ODP
Our ATLRUG.com Web Site
PDF
Git - The Incomplete Introduction
PPTX
Smile Gupta - Hacktoberfest Celebration 2020
PPTX
Git n git hub
Git Going at JavaZone 2010
Version control system & how to use git
Introduction to Git for Artists
Our ATLRUG.com Web Site
Git - The Incomplete Introduction
Smile Gupta - Hacktoberfest Celebration 2020
Git n git hub

What's hot (20)

PPTX
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
PPTX
Git in 10 minutes
PDF
Introduction to Git
PPTX
Git and git workflow best practice
PPTX
Git Training
PPTX
Mastering git - Workflow
PDF
GitLab as an Alternative Development Platform for Github.com
PDF
A Simple Introduction to Git
PPTX
Git intro hands on windows with msysgit
PDF
Git Tricks
PDF
Git presentation
PDF
Gradle 2.0 and beyond (GREACH 2015)
PPTX
Introduction to git
PPTX
Web Programming - Git basics
PDF
Git for Beginners
PDF
PDF
Git Workshop
PDF
Introduction to Git
PPT
Github By Nyros Developer
PPTX
Jump into React-Native (Class 2/6)
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Git in 10 minutes
Introduction to Git
Git and git workflow best practice
Git Training
Mastering git - Workflow
GitLab as an Alternative Development Platform for Github.com
A Simple Introduction to Git
Git intro hands on windows with msysgit
Git Tricks
Git presentation
Gradle 2.0 and beyond (GREACH 2015)
Introduction to git
Web Programming - Git basics
Git for Beginners
Git Workshop
Introduction to Git
Github By Nyros Developer
Jump into React-Native (Class 2/6)
Ad

Viewers also liked (8)

PDF
Intro to CI/CD using Docker
PDF
Pluggable Infrastructure with CI/CD and Docker
PDF
Gradle - time for a new build
PDF
Gradle in 45min
PDF
Gradle build tool that rocks with DSL JavaOne India 4th May 2012
PDF
Gradle - the Enterprise Automation Tool
PPTX
Database Migrations with Gradle and Liquibase
PDF
Netflix Nebula - Gradle Summit 2014
Intro to CI/CD using Docker
Pluggable Infrastructure with CI/CD and Docker
Gradle - time for a new build
Gradle in 45min
Gradle build tool that rocks with DSL JavaOne India 4th May 2012
Gradle - the Enterprise Automation Tool
Database Migrations with Gradle and Liquibase
Netflix Nebula - Gradle Summit 2014
Ad

Similar to Git,Travis,Gradle (20)

PDF
git & GitHub workshop
PPTX
Spring Projects Infrastructure
PPTX
Spring Projects Infrastructure
PPTX
Git,Github,How to host using Github
PPTX
Github Session organized by GDG on campus SCOE.pptx
PPTX
Git within RStudio
PPTX
Beginner's guide to git and github
PDF
PPTX
GDG On Campus NBNSCOE Version Control Essential : Master Git & GitHub
PPTX
Workflows using Git GitHub | Edureka
PDF
A Tutorial for GitHub.pdf
PDF
A Tutorial for GitHub.pdf
PPTX
GitHub Event.pptx
PPTX
Git tutorial
PPTX
Git Overview
PDF
Version Control with Git
PDF
Git Basics (Professionals)
PPT
GIT By Sivakrishna
PDF
SFScon17 - Daniele Gobbetti: "Free software projects on GitHub and DMCA"
PPTX
Git hub visualstudiocode
git & GitHub workshop
Spring Projects Infrastructure
Spring Projects Infrastructure
Git,Github,How to host using Github
Github Session organized by GDG on campus SCOE.pptx
Git within RStudio
Beginner's guide to git and github
GDG On Campus NBNSCOE Version Control Essential : Master Git & GitHub
Workflows using Git GitHub | Edureka
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
GitHub Event.pptx
Git tutorial
Git Overview
Version Control with Git
Git Basics (Professionals)
GIT By Sivakrishna
SFScon17 - Daniele Gobbetti: "Free software projects on GitHub and DMCA"
Git hub visualstudiocode

More from Riccardo Rigon (20)

PDF
Models for hazards mapping
PDF
A short introduction to some hydrological extreme phenomena
PDF
EvaporAzione
PDF
Francesco Serafin
PDF
Meledrio
PDF
Lisbon talk for SteepStreams
PDF
Grids implementation
PDF
PDF
Some photos from the field
PDF
Virtual water fem 07032017
PDF
Dalton Prize Lecture 2017 by Dani Or
PDF
Projecting Climate Change Impacts on Water Resources in Regions of Complex To...
PDF
The modern flood forecasting
PDF
La moderna previsione delle piene
PDF
Hydrological Extremes and Human societies
PDF
The Science of Water Transport and Floods from Theory to Relevant Application...
PDF
The Science of Water Transport and Floods from Theory to Relevant Applications
PDF
Climaware at the end
PDF
Hymod model for catchments
PDF
Egu2017 pico
Models for hazards mapping
A short introduction to some hydrological extreme phenomena
EvaporAzione
Francesco Serafin
Meledrio
Lisbon talk for SteepStreams
Grids implementation
Some photos from the field
Virtual water fem 07032017
Dalton Prize Lecture 2017 by Dani Or
Projecting Climate Change Impacts on Water Resources in Regions of Complex To...
The modern flood forecasting
La moderna previsione delle piene
Hydrological Extremes and Human societies
The Science of Water Transport and Floods from Theory to Relevant Application...
The Science of Water Transport and Floods from Theory to Relevant Applications
Climaware at the end
Hymod model for catchments
Egu2017 pico

Recently uploaded (20)

PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
CRP102_SAGALASSOS_Final_Projects_2025.pdf
PPTX
DRUGS USED FOR HORMONAL DISORDER, SUPPLIMENTATION, CONTRACEPTION, & MEDICAL T...
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
LEARNERS WITH ADDITIONAL NEEDS ProfEd Topic
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PPTX
What’s under the hood: Parsing standardized learning content for AI
PPTX
Climate Change and Its Global Impact.pptx
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
English Textual Question & Ans (12th Class).pdf
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PDF
HVAC Specification 2024 according to central public works department
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PPTX
Module on health assessment of CHN. pptx
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2013).pdf
PDF
International_Financial_Reporting_Standa.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
CRP102_SAGALASSOS_Final_Projects_2025.pdf
DRUGS USED FOR HORMONAL DISORDER, SUPPLIMENTATION, CONTRACEPTION, & MEDICAL T...
Introduction to pro and eukaryotes and differences.pptx
LEARNERS WITH ADDITIONAL NEEDS ProfEd Topic
Hazard Identification & Risk Assessment .pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
Unit 4 Computer Architecture Multicore Processor.pptx
What’s under the hood: Parsing standardized learning content for AI
Climate Change and Its Global Impact.pptx
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
English Textual Question & Ans (12th Class).pdf
Core Concepts of Personalized Learning and Virtual Learning Environments
HVAC Specification 2024 according to central public works department
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
Module on health assessment of CHN. pptx
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2013).pdf
International_Financial_Reporting_Standa.pdf

Git,Travis,Gradle

  • 1. Git, Gradle andTravis CI: a short guide to start with them Mercoledì, febbraio 1, 17 Marialaura Bancheri 1
  • 2. New Project 1)  Create your project on Eclipse 2)  Create you repo on gitHub and save the https 3)  git init (to initialize the new repository) 4)  git remote add origin https://yourhttps 5)  git status 6)  git add ( the changes or the new files) 7)  git commit –m “first commit” 8)  git push origin master Mercoledì, febbraio 1, 17 Marialaura Bancheri 2
  • 3. New Branch 1)  git checkout -b HelloWorldMonday 2)  do your changes on the branch..(git add, commit, push origin HelloWorldMonday) 3)  git checkout master 4)  git merge HelloWorldMonday 5)  git push origin master 6)  git branch –d HelloWorldMonday Mercoledì, febbraio 1, 17 Marialaura Bancheri 3
  • 4. Copying an existing project 1)  git clone https//yourhttps 2)  import from eclipse an existing project into workspace Mercoledì, febbraio 1, 17 Marialaura Bancheri 4
  • 5. Also useful -  git status -  git pull (to upgrade the repo) -  git log (to see the history of the repo) -  git tag -a v0.1 -m "Just another test" -  git push origin v0.1 -  git rm (to remove undesired files) -  http://rogerdudler.github.io/git-guide/ Mercoledì, febbraio 1, 17 Marialaura Bancheri 5
  • 6. Gradle: how to create a new project 1) Install Gradle plugin on Eclipse (help àEclipse Marketplace) Mercoledì, febbraio 1, 17 Marialaura Bancheri 6
  • 7. Gradle: how to create a new project 2) Create a new Gradle Project - 1/2 Mercoledì, febbraio 1, 17 Marialaura Bancheri 7
  • 8. Gradle: how to create a new project 3) Create a new Gradle Project -2/2 Mercoledì, febbraio 1, 17 Marialaura Bancheri 8
  • 9. Gradle: what’s in a Gradle project? Mercoledì, febbraio 1, 17 Marialaura Bancheri 9 Codes Tests build.gradle
  • 10. !!! Gradle: what’s more in a Gradle project respect to an Eclipse project? Mercoledì, febbraio 1, 17 Marialaura Bancheri 10
  • 11. build.gradle Mercoledì, febbraio 1, 17 Marialaura Bancheri 11
  • 12. build.gradle – Water Budget Project Mercoledì, febbraio 1, 17 Marialaura Bancheri 12
  • 13. build.gradle – Water Budget Project Mercoledì, febbraio 1, 17 Marialaura Bancheri 13
  • 14. How to transform an old project into a Gradle project Mercoledì, febbraio 1, 17 Marialaura Bancheri 14 1)  Clone the project https://github.com/Mariolina88/HelloWorldWithTest.git 2)  Open the project and see how it is organized 3)  Reorganize sub-folders : src/main/java/helloWorldWithTest/HelloWorldWithTest.java src/test/java/test/HelloWorldTest.java 4)  Create or import the build.gradle file (see the folder helps of the project) 5)  Import the project in eclipse as a Gradle Project and test it!
  • 15. Create a new repo! Mercoledì, febbraio 1, 17 Marialaura Bancheri 15 1)  Create a repo on your personal git profile with the Gradle HelloWorld! 2) Push your changes on it: - First way: delete the folder .git from your project and start with the new repo! (see slide 2, points 3-8); - Second way: git remote –v (to check the old remote) git remote set-url origin https://yourhttps git remote –v (to check the new remote) git status (it is always good to see what’s going on) git push origin master
  • 16. Travis CI Mercoledì, febbraio 1, 17 Marialaura Bancheri 16 1) Go on your new repository page
  • 17. Travis CI Mercoledì, febbraio 1, 17 Marialaura Bancheri 17 2) Settings à Integrations and services 3) Add service and find Travis CI
  • 18. Travis CI Mercoledì, febbraio 1, 17 Marialaura Bancheri 18 4) Click on https://travis-ci.org/profile
  • 19. Travis CI Mercoledì, febbraio 1, 17 Marialaura Bancheri 19 5) Sing in with GitHub
  • 20. Travis CI Mercoledì, febbraio 1, 17 Marialaura Bancheri 20 6) Find in the list of your repos, the HelloWorldWithGradleTest and activate it
  • 21. Travis CI Mercoledì, febbraio 1, 17 Marialaura Bancheri 21 6) Creat the file travis.yml for the project (see the folder helps of the project)
  • 22. Travis CI Mercoledì, febbraio 1, 17 Marialaura Bancheri 22 6) Add the file travis.yml to the project and commit to the repo 7) if everything is working you will see in the commit page a green thick
  • 23. Travis CI Mercoledì, febbraio 1, 17 Marialaura Bancheri 23 8) Click on the thick and see the Travis page with the info on the test
  • 24. Travis CI Mercoledì, febbraio 1, 17 Marialaura Bancheri 24 More info can be found at: Getting started: https://docs.travis-ci.com/user/getting-started/ Encryption key: https://docs.travis-ci.com/user/encryption-keys/
  • 25. That’s all folks! Mercoledì, febbraio 1, 17 Marialaura Bancheri 25