ACCUMULO-4182 Improve travis-ci builds

* Set up caching of maven dependencies
* Add IRC notifications
* Clear any cached accumulo artifacts
* Use https for maven central
* Skip pre-fetching of maven dependencies with separate mvn execution


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/99e3023c
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/99e3023c
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/99e3023c

Branch: refs/heads/1.7
Commit: 99e3023c7f96a2553282dc73cffdf82659285d2d
Parents: 6665905
Author: Christopher Tubbs <ctubb...@apache.org>
Authored: Fri Apr 15 18:26:28 2016 -0400
Committer: Christopher Tubbs <ctubb...@apache.org>
Committed: Fri Apr 15 18:26:28 2016 -0400

----------------------------------------------------------------------
 .travis.yml | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/99e3023c/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index e4626ce..64e44a2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,9 +13,25 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.
 language: java
+notifications:
+  irc:
+    channels:
+      - "chat.freenode.net#accumulo"
+    use_notice: true
+    skip_join: true
+# speed up builds; don't use with install
+cache:
+  directories:
+    - $HOME/.m2
+# skip pre-fetch of maven dependencies
+install: true
 jdk:
-  - openjdk6
-  - openjdk7
-  - oraclejdk7
   - oraclejdk8
-script: mvn clean verify -DskipITs
+  - oraclejdk7
+  - openjdk7
+  - openjdk6
+# clear any cache of accumulo artifacts, just in case; use https for central
+before_script:
+  - rm -rf $HOME/.m2/repository/org/apache/accumulo
+  - echo "<settings 
xmlns='http://maven.apache.org/SETTINGS/1.0.0'><mirrors><mirror><id>secure-central</id><url>https://repo.maven.apache.org/maven2</url><mirrorOf>central</mirrorOf></mirror></mirrors></settings>"
 > $HOME/settings-custom.xml
+script: mvn --settings $HOME/settings-custom.xml clean verify -DskipITs

Reply via email to