diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b15717c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: scala +jdk: +- oraclejdk8 +cache: + directories: + - "$HOME/.ivy2/cache" + - "$HOME/.sbt" +script: +- sbt +test +package +after_success: +- "./travis-publish.sh" +env: + global: + - secure: KNM333WCsxMe69trZvUMy5rMhzm2s2aiaNWwfKcjtBR2efcLr2DgpICmXspWM5OmF8Pl3Aol1y01bbVZ2DBPyxp3b55rJ+QZ8ZEgrflZGk0T4icAJRJHyX7dCOIGwgQG/WiC084NZun+D0hoNhwvohwO4bjy44i2VeeOv6tezVQ= + - secure: HT5iEWCCoqRsMc5iw6Wdl55DCUlj+FcZ5k4oTtXMPty7BMJf4nOKmYJkXPJcj4GtBwgavOoRPxgI1CjSbsORoQtNEsAc9x0Mp2onJLU7NwSiRvfww0lS019k+6LZZg7DBCSn3ylnQRMAaeDhk3Vpc3Vu3T5C6SZxrpjzjQHMcVo= diff --git a/README.md b/README.md index cba59d8..049fe34 100644 --- a/README.md +++ b/README.md @@ -16,17 +16,23 @@ Provides: * uploadprogress -To include this module in your Lift project, update your `libraryDependencies` in `build.sbt` to include: +To include this module in your Lift project, add the following to `build.sbt`: -*Lift 2.6.x* for Scala 2.9 and 2.10: + libraryDependencies += "net.liftmodules" %% "widgets_3.0" % "1.4.0" - "net.liftmodules" %% "widgets_2.6" % "1.3" +Releases +======== -*Lift 2.5.x* for Scala 2.9 and 2.10: +| Lift Version | Scala Version | Module Version | +|--------------|---------------|----------------| +| 3.0.x | 2.12, 2.11 | 1.4.0 | +| 2.6.x | 2.10, 2.9 | 1.3 | +| 2.5.x | 2.10, 2.9 | 1.3 | - "net.liftmodules" %% "widgets_2.5" % "1.3" +Historic Snapshots +------------------ -*Lift 3.0.x* for Scala 2.10: +Lift 3.0.x for Scala 2.10: "net.liftmodules" %% "widgets_3.0" % "1.3-SNAPSHOT" @@ -45,13 +51,10 @@ General documentation and starting points: **Note:** The module package changed from `net.liftweb.widgets` to `net.liftmodules.widgets` in May 2012. Please consider this when referencing documentation written before that date. - - Autocomplete ------------ -* _Lift Cookbook_ on [Making Suggestions with Autocomplete -](http://cookbook.liftweb.net/#Autocomplete). +* _Lift Cookbook_ on [Making Suggestions with Autocomplete](http://cookbook.liftweb.net/#Autocomplete). * [Using Lift’s AutoComplete Widget](http://timperrett.com/2010/10/13/using-lifts-autocomplete-widget/), Timothy Perrett's blog, 13 October 2010. @@ -64,7 +67,7 @@ Calendar Flot ---- -* [Lift Wiki page](https://www.assembla.com/wiki/show/liftweb/flot). +* [Lift Wiki page](https://www.assembla.com/wiki/show/liftweb/flot). Gravatar -------- @@ -86,7 +89,7 @@ RSS Widget ---------- * Exploring Lift, [chapter 14](http://exploring.liftweb.net/onepage/index.html#toc-Subsection-14.1.3). - + Sparklines ---------- @@ -109,7 +112,7 @@ TreeView Notes for module developers =========================== -* The [Jenkins build](https://liftmodules.ci.cloudbees.com/job/widgets/) is triggered on a push to master. +Merge to master will trigger a Travis build and publish a SNAPSHOT (if the version is a -SNAPSHOT). diff --git a/travis-publish.sh b/travis-publish.sh new file mode 100755 index 0000000..bde2354 --- /dev/null +++ b/travis-publish.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Automatically publish snapshots for branches pushed to master. + +if [[ "${TRAVIS_PULL_REQUEST}" == "false" && + "${TRAVIS_BRANCH}" == "master" && + $(cat build.sbt) =~ "-SNAPSHOT" +]]; then + sbt +publish +fi