Skip to content

Commit

Permalink
README and Travis CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jreznot committed Jan 30, 2019
1 parent 91cdcd1 commit 8aac62b
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: java
jdk: openjdk8

before_install:
- git clone https://github.com/cuba-platform/cuba-gradle-plugin.git $TRAVIS_BUILD_DIR/../cuba-gradle-plugin
- git clone https://github.com/cuba-platform/cuba.git $TRAVIS_BUILD_DIR/../cuba
- (cd $TRAVIS_BUILD_DIR/../cuba-gradle-plugin && chmod +x ./gradlew && ./gradlew --no-daemon install)
- (cd $TRAVIS_BUILD_DIR/../cuba && chmod +x ./gradlew && ./gradlew --no-daemon install)
- chmod +x ./gradlew

install:
- ./gradlew --no-daemon assemble

script:
- ./gradlew --no-daemon test javadoc

cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

addons:
apt:
packages:
- openjdk-8-jdk
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# CUBA Charts Add-on

[![license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
[![Build Status](https://travis-ci.org/cuba-platform/bpm.svg?branch=master)](https://travis-ci.org/cuba-platform/npm)
[![Documentation](https://img.shields.io/badge/documentation-online-03a9f4.svg)](https://doc.cuba-platform.com/bpm-latest)

Charts Add-on provides integration with AmCharts and GoogleMaps for applications based on CUBA Platform.

For more information see [github.com/cuba-platform/cuba](https://github.com/cuba-platform/cuba).

## Build and install

In order to build the add-on from source, you need to install the following:
* Java 8 Development Kit (JDK)
* [CUBA Gradle Plugin](https://github.com/cuba-platform/cuba-gradle-plugin)
* [CUBA](https://github.com/cuba-platform/cuba)

Let's assume that you have cloned sources into the following directories:
```
work/
cuba/
cuba-gradle-plugin/
bpm/
```

Open terminal in the `work` directory and run the following command to build and install the plugin into your local Maven repository (`~/.m2`):
```
cd cuba-gradle-plugin
gradlew install
```

After that, go to the cuba directory and build and install it with the same command:
```
cd ../cuba
gradlew install
```

Finally, go to the bpm directory and build and install it with the same command:
```
cd ../bpm
gradlew install
```

0 comments on commit 8aac62b

Please sign in to comment.