Skip to content

Commit

Permalink
Added pictures to explain how to see the status of the travis build. …
Browse files Browse the repository at this point in the history
…Moved travis configuration into a separate folder since it is not part of gradle.
  • Loading branch information
m133225 committed Aug 29, 2016
1 parent 53fe17a commit 6a9ed28
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 20 deletions.
6 changes: 3 additions & 3 deletions docs/devops/gradle/Introduction to Gradle.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Gradle

## Background
[Gradle](https://gradle.org/) is an integration technology that addressbook uses for continuous integration:
- building the application JAR
[Gradle](https://gradle.org/) is an integration technology that addressbook uses for:
- handling project dependencies
- testing (including coverage of test cases)
- checking for bugs & code style violations
- building the application JAR
- testing (including coverage of test cases)

We have wrapped our project in a [Gradle Wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html), so that anyone who has cloned the repository can perform the same gradle tasks to manage dependencies or perform automated testing.
The gradle details are defined in `build.gradle`, which is a Groovy script. You can start learning them from [Build Scripts Basics](https://docs.gradle.org/current/userguide/tutorial_using_tasks.html).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,24 @@ See [Travis CI Documentation](https://docs.travis-ci.com/) for more details.
4. Activate the travis CI switch.
![Activate the switch](../../images/flick_repository_switch.png)
5. Create the following `travis.yml` file in the main folder
```
language: java
matrix:
include:
- jdk: oraclejdk8
script: ./gradlew clean headless allTests coverage coveralls -i
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
addons:
apt:
packages:
- oracle-java8-installer
```

To see the CI in action, push a commit to the master branch!
```
language: java
matrix:
include:
- jdk: oraclejdk8
script: ./gradlew clean headless allTests coverage coveralls -i
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
addons:
apt:
packages:
- oracle-java8-installer
```
6. To see the CI in action, push a commit to the master branch!
Go to the repository and see the pushed commit. There should be an icon which will link you to the Travis build.
![Commit build](../../images/build_pending.png)
As the build is run on a provided remote machine, we can only examine the logs it produces:
![Travis build](../../images/travis_build.png)
Binary file added docs/images/build_pending.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/travis_build.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6a9ed28

Please sign in to comment.