Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Commit 484b84b

Browse files
authored
Merge pull request #3 from builtamont-oss/chore/travis_support
Chore - Travis support
2 parents 633f651 + d694d55 commit 484b84b

File tree

5 files changed

+63
-28
lines changed

5 files changed

+63
-28
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: java
2+
jdk:
3+
- openjdk7
4+
- oraclejdk7
5+
- oraclejdk8
6+
env:
7+
global:
8+
- secure: "q+fkZBCN8ET5RrgaG4RGt1t1aSjsL6LN6BSt/Yvx2H5a2DtGmNA/A/gcAEnKlyv0BgXAcrzAzCCIgXvt2P4om5DcBU/yOTEga+/46r7+iVnmfQGcW81NHQA1rlIYvuBqXGDo9yo1B3eRr8vTj3fzEE3K8jjchHQUlgRdUum3DNKeZwACodV2fpj9ZslyoX4HRpWg3ctqvB0R7/4NwtXnXrOw8hHDF8OrQK3JiCxAoZnA16/Fwc0d8yN4Or10N1XiWbNdLFek+Y3nVTdGRUZjsqp/VhvgIwzmtnuiCeF2iuMCpYy6C9SAFG4Tyn5VLmFzEqXMrbxuMBp8c2GCcFQb0jxEiWKsT0Nufqc1pYlUSl2S12D8yokEo5H9/NcH/2p2b5zqzcWzFe1c5YEn0Ktj8d/01GDYfkuPyoQ0UmjC6h68iozk5mogPT0t7eUf7i0wll72v4kGB2xOK3VY+53LA7DS+f/0HeDi47tXgPkA8bg2dGZTTD+JHXcqyMTt9Ey96a42cauLQ4PGfujc6fPJUw31sxx2IURj1USdxut/a5PEa+LL+xGrKKgOW4GMUwjrYMnLf9e3Y/uR4EoHmYYwsoNtD0g6bEt7C83JZrQd5Sp3mN6gEU0sjp2/iBPqS+tB3z6eRUur8ctnk6EC82WHmRwZHeoKLVOktAPCKumBnWY="
9+
- secure: "04af3/9b67O5xd1U8GDhCqRQedHM3RP5HokdsOwAe8vN3EyyyKWXQafBkKsPvmDh5Uu/CYQppOYS4pQxB9ikweTfj34DbyyxpqJmjYE4KFvdQuFd0msyXhLCg6xfvS4KO6zjUQ8/c3rNQap4hx/icQ50/NES4rkUkxIZ/VKQ4jPXcBzPegEC6Le50Vw2tR8FT4erdNuABnGf1WnWGUUa3i6xdQQPyw8kdTIun08HxE6M9F+JJRH8jH3b7KizQhGdACAk4fnCOmFSgu7pm6ACXRJYqAfg055i5mr77yZXfeUIcIY3l45uY1uR8sxEbLUE/KwwlLGLVZWDI4xU6JIGisbrmMce+vz6YKUT9gHF3iAEJ5e4N18nJcRyHVrqcuRzv5Py0rFPZ70dr7aW/tk0JrTz6+FZ4FNIOdvIQe4qWy2TVns0EkERdtYGTdsigWfa/sKF/P5+/2foUOlnR06p55NHpIjaHRKy/XFVV1gyURUlRUGExVoIMX21bAMxGYMFMH7LfddRsly028lXwibRMkQGBeyVRYKQmqJvN3mTPbuAWmZZdaVpqn1jkgETlT6/qz43zv9y8jAOzZ22SeHEXe3NiexChqkAJWIH3cBYshMhy8H1fmYAIVYHvI+BPsbi+qDYSnAlAUDqoLWXPAvWUX89dAIXYRNcKplzpFsjWvM="
10+
deploy:
11+
provider: script
12+
script: ./scripts/deploy.sh
13+
skip_cleanup: true
14+
on:
15+
branch: master
16+
jdk: oraclejdk8

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![License](https://img.shields.io/badge/license-Apache%202-brightgreen.svg)](LICENSE) [![Master Build Status](https://travis-ci.org/builtamont-oss/cassandra-migration.svg?branch=master)](https://travis-ci.org/builtamont-oss/cassandra-migration)
2+
13
# Cassandra Migration
24

35
`cassandra-migration` is a simple and lightweight Apache Cassandra database schema migration tool.
@@ -10,10 +12,10 @@ It is designed to work similar to Flyway, supporting plain CQL and Java-based mi
1012

1113
Ensure the following prerequisites are met:
1214

13-
* Java SDK 1.7+ (tested with Azul Zulu JDK 1.7.0_111 and 1.8.0_102)
14-
* Apache Cassandra 3.0.x (tested with DataStax Enterprise Community 3.0.x)
15-
* Pre-existing Keyspace
16-
15+
* **Java SDK 1.7+:**<br />The library is developed using Azul Zulu 1.8, and release-tested (Travis CI) with OpenJDK 1.7, Oracle JDK 1.7, and Oracle JDK 1.8
16+
* **Apache Cassandra 3.0.x:**<br />The library is currently tested using embedded Cassandra, testing with standalone Cassandra (DataStax Community Edition) is in the roadmap
17+
* **Pre-existing Keyspace:**<br />Cassandra's Keyspace should be managed outside the migration tool by sysadmins (e.g. tune replication factor, etc)
18+
1719
Import this library as a dependency (Maven example):
1820
``` xml
1921
<dependency>
@@ -23,8 +25,6 @@ Import this library as a dependency (Maven example):
2325
</dependency>
2426
```
2527

26-
*NOTE: Cassandra's Keyspace should be managed outside the migration tool by sysadmins (e.g. tune replication factor, etc)*
27-
2828
### Migration version table
2929

3030
``` shell
@@ -187,6 +187,18 @@ Please read [CONTRIBUTING] for more details.
187187
188188
https://github.com/builtamont/cassandra-migration/releases
189189
190+
## Version 0.9 Release Pending Actions
191+
192+
* Replace `config.Cluster.java` and `config.Keyspace.java` to the one provided by DataStax Cassandra driver
193+
* Add additional features from upstream open PRs
194+
* Add standalone Cassandra (DataStax Community Edition) integration test
195+
196+
## Non-Critical Pending Actions
197+
198+
* Refactor build system to use Gradle
199+
* Refactor constructor and method signatures to avoid passing `null`s (via Kotlin `lateinit`, and / or use of `Option` values)
200+
* Refactor methods body to idiomatic Kotlin
201+
190202
[Axel Fontaine / BoxFuse Flyway]: https://github.com/flyway/flyway
191203
[Contrast Security's Cassandra Migration]: https://github.com/Contrast-Security-OSS/cassandra-migration
192204
[Contrast Security Cassandra Migration project license page]: https://github.com/Contrast-Security-OSS/cassandra-migration/blob/master/LICENSE

pom.xml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd http://www.w3.org/2001/XMLSchema-instance ">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd http://www.w3.org/2001/XMLSchema-instance ">
4+
25
<modelVersion>4.0.0</modelVersion>
36
<groupId>com.builtamont</groupId>
47
<artifactId>cassandra-migration</artifactId>
@@ -7,7 +10,7 @@
710
<description>
811
Database migration tool for Cassandra
912
</description>
10-
<url>https://github.com/builtamont/cassandra-migration</url>
13+
<url>https://github.com/builtamont-oss/cassandra-migration</url>
1114

1215
<licenses>
1316
<license>
@@ -19,7 +22,7 @@
1922
<packaging>jar</packaging>
2023

2124
<organization>
22-
<name>Builtamont Tech</name>
25+
<name>Builtamont Tech International</name>
2326
<url>builtamonttech.com</url>
2427
</organization>
2528

@@ -35,16 +38,16 @@
3538
</distributionManagement>
3639

3740
<scm>
38-
<url>https://github.com/builtamont/cassandra-migration</url>
39-
<connection>scm:git:https://github.com/builtamont/cassandra-migration.git</connection>
40-
<developerConnection>scm:git:https://github.com/builtamont/cassandra-migration.git</developerConnection>
41-
<tag>HEAD</tag>
41+
<url>https://github.com/builtamont-oss/cassandra-migration</url>
42+
<connection>scm:git:https://github.com/builtamont-oss/cassandra-migration.git</connection>
43+
<developerConnection>scm:git:https://github.com/builtamont-oss/cassandra-migration.git</developerConnection>
4244
</scm>
4345

4446
<developers>
4547
<developer>
4648
<id>hhandoko</id>
4749
<name>Herdy Handoko</name>
50+
<url>http://github.com/hhandoko</url>
4851
</developer>
4952
</developers>
5053

@@ -56,6 +59,7 @@
5659
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5760
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5861
<kotlin.version>1.0.3</kotlin.version>
62+
<slf4j.version>1.7.13</slf4j.version>
5963
<maven.compiler.source>1.7</maven.compiler.source>
6064
<maven.compiler.target>1.7</maven.compiler.target>
6165
</properties>
@@ -69,13 +73,13 @@
6973
<dependency>
7074
<groupId>org.slf4j</groupId>
7175
<artifactId>slf4j-api</artifactId>
72-
<version>1.7.13</version>
76+
<version>${slf4j.version}</version>
7377
<optional>true</optional>
7478
</dependency>
7579
<dependency>
7680
<groupId>org.slf4j</groupId>
7781
<artifactId>slf4j-simple</artifactId>
78-
<version>1.7.13</version>
82+
<version>${slf4j.version}</version>
7983
<scope>test</scope>
8084
</dependency>
8185
<dependency>
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#!/bin/bash
22

33
###
4-
# File : maven-central-deploy.sh
4+
# File : deploy.sh
55
# License :
6-
# Original - Copyright (c) 2015 - 2016 Contrast Security
7-
# Derivative - Copyright (c) 2016 Citadel Technology Solutions Pte Ltd
6+
# Copyright (c) 2016 Citadel Technology Solutions Pte Ltd
87
#
98
# Licensed under the Apache License, Version 2.0 (the "License");
109
# you may not use this file except in compliance with the License.
@@ -19,13 +18,4 @@
1918
# limitations under the License.
2019
###
2120

22-
# Deploy maven artifact in current directory into Maven central repository
23-
# using maven-release-plugin goals
24-
25-
read -p "Really deploy to maven cetral repository (yes/no)? "
26-
27-
if ( [ "$REPLY" == "yes" ] ) then
28-
mvn -P release release:clean release:prepare release:perform -B -e | tee maven-central-deploy.log
29-
else
30-
echo 'Exit without deploy'
31-
fi
21+
mvn deploy --settings settings.xml -DskipTests=true -B

settings.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
4+
5+
<servers>
6+
<server>
7+
<!-- Maven Central Deployment -->
8+
<id>ossrh</id>
9+
<username>${env.SONATYPE_USERNAME}</username>
10+
<password>${env.SONATYPE_PASSWORD}</password>
11+
</server>
12+
</servers>
13+
</settings>

0 commit comments

Comments
 (0)