Skip to content

Commit

Permalink
[Refactor/Feature] Change versioning to reflect change of Maven Repos…
Browse files Browse the repository at this point in the history
…itory./Add possible CI replacement Travic-CI.
  • Loading branch information
MiracleM4n committed Oct 30, 2013
1 parent 0846deb commit c61ac98
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Source language and JDK version to use.
language: java
jdk: oraclejdk7

# Compile and package JAR and set build properties.
install: mvn package -Dbuild.number=$TRAVIS_BUILD_NUMBER
after_success:
# Get files for use with build, namely the custom Maven settings.xml.
- "git clone https://github.com/Q0rDev/travis-ci-resources.git target/travis"
# Check if commit s not a pull request, if git repo is official, and if branch is master. If checks pass, deploy artifacts to Maven repository.
- "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == Q0rDev/MAdvanced ]] && [[ $TRAVIS_BRANCH == master ]] && mvn deploy --settings target/travis/settings.xml"

notifications:
# Disable build status email notifications, until the issue with forks is fixed.
email: false
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- Project information -->
<groupId>ca.q0r</groupId>
<artifactId>MAdvanced</artifactId>
<version>1.6.4-R0.7</version>
<version>1.6.4-R1.0-SNAPSHOT</version>
<name>MAdvanced</name>
<url>http://q0r.ca/</url>
<description>Advanced MChat functionality</description>
Expand All @@ -30,12 +30,12 @@
<!-- Maven repository -->
<distributionManagement>
<repository>
<id>q0r-rel</id>
<id>q0r-nexus-release</id>
<name>nexus.q0r.org Releases</name>
<url>http://nexus.q0r.ca/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>q0r-snap</id>
<id>q0r-nexus-snapshot</id>
<name>nexus.q0r.org Snapshots</name>
<url>http://nexus.q0r.ca/content/repositories/snapshots/</url>
</snapshotRepository>
Expand Down Expand Up @@ -66,7 +66,7 @@
</repositories>

<build>
<defaultGoal>clean install</defaultGoal>
<defaultGoal>package</defaultGoal>
<!-- Resources -->
<resources>
<resource>
Expand Down

0 comments on commit c61ac98

Please sign in to comment.