diff --git a/.travis.yml b/.travis.yml index e7863db..c228950 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,4 @@ language: cpp before_install: sudo apt-get update install: ./install.sh script: ant test +after_script: ./uninstall.sh diff --git a/README.md b/README.md index e7c8f2a..81c7a21 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # Ticketing System -[![Build Status](https://travis-ci.org/binhonglee/TicketingSystem.svg?branch=master)](https://travis-ci.org/binhonglee/TicketingSystem) [![CircleCI](https://circleci.com/gh/binhonglee/TicketingSystem.svg?style=svg)](https://circleci.com/gh/binhonglee/TicketingSystem) [![Issue Count](https://codeclimate.com/github/binhonglee/TicketingSystem/badges/issue_count.svg)](https://codeclimate.com/github/binhonglee/TicketingSystem) +[![Build Status](https://travis-ci.org/binhonglee/TicketingSystem.svg?branch=master)](https://travis-ci.org/binhonglee/TicketingSystem) +[![CircleCI](https://circleci.com/gh/binhonglee/TicketingSystem.svg?style=shield)](https://circleci.com/gh/binhonglee/TicketingSystem) +[![codecov](https://codecov.io/gh/binhonglee/TicketingSystem/branch/master/graph/badge.svg)](https://codecov.io/gh/binhonglee/TicketingSystem) + +[![Issue Count](https://codeclimate.com/github/binhonglee/TicketingSystem/badges/issue_count.svg)](https://codeclimate.com/github/binhonglee/TicketingSystem) +[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/binhonglee/TicketingSystem/blob/master/LICENSE) +[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) + An overall system that records information about each vehicles and users. @@ -9,11 +16,23 @@ For detailed code documentations, please visit [https://binhonglee.github.io/Tic This program is still in progress and is currently in a **NOT WORKING** condition. -## Setting up and running it +## Installation ```sh $ git clone https://github.com/binhonglee/TicketingSystem.git $ cd TicketingSystem +$ ./install.sh +``` + +## Building and running it + +```sh $ ant build $ ./bin/main ``` + +## Uninstallation + +```sh +$ ./uninstall.sh +``` diff --git a/circle.yml b/circle.yml index f5e00cd..560d8fd 100644 --- a/circle.yml +++ b/circle.yml @@ -1,6 +1,8 @@ dependencies: pre: - ./install.sh + post: + - ./uninstall.sh test: override: - ant test diff --git a/docs/index.md b/docs/index.md index 0b227dc..97042c1 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,5 +1,12 @@ # Ticketing System +## build.xml + +| Command | Action | +|:-------------|:---------------------------| +| `ant build` | Build the project. | +| `ant test` | Run test (Currently only build and clean the project) | + ## Person.hpp / Person.cpp #### Constructors diff --git a/uninstall.sh b/uninstall.sh new file mode 100755 index 0000000..f165c91 --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,6 @@ +cd ../ +echo "Deleting project files" +rm -rf TicketingSystem +echo "Removing additional installed library" +rm -rf ~/anttasks.jar +read -n1 -r -p "Press any key to continue..." key