Skip to content

Commit 69ac508

Browse files
authored
Add Travis build (#8)
* Add travis build * Add travis build
1 parent 5217a69 commit 69ac508

3 files changed

Lines changed: 42 additions & 9 deletions

File tree

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: scala
2+
jdk:
3+
- oraclejdk8
4+
cache:
5+
directories:
6+
- "$HOME/.ivy2/cache"
7+
- "$HOME/.sbt"
8+
script:
9+
- sbt +test +package
10+
after_success:
11+
- "./travis-publish.sh"
12+
env:
13+
global:
14+
- secure: TaINWxuMPpYpCaLx3OJjWSqsa71BoJasZUU/miKNUQ6cpge1Ame3Ex3O2T36vxWhsISsaBeszts5A4K4c5+aSehqRkZ5ihkhM1BB/QQ6imi/y8kpAUez0EmZhArZbEE3Vyh9t8Uunez8obS40K/xiFF4ikDUd3xajGiAmEzq5Hg=
15+
- secure: gzMd1I/GOVeqlEgIolEsF9CZWOgOXhDqawzYzIREJsqK1gG0NLLM/PWzXtY4Y+/YHSSt+buvMPm7Dst1/bItK/3ZnxccXFimEiLQdIZrPhcT43ev4xX4v+10wO3rJMbrLTGZlPUifAeDiFOI89y8VHHFF2VqqIf739DsrGZe4JE=

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,28 @@ This module provides "a state machine that allows you to define transition rules
55

66
For use with Mapper.
77

8-
To include this module in your Lift project, update your `libraryDependencies` in `build.sbt` to include:
8+
Installation
9+
------------
910

10-
*Lift 2.5.x* for Scala 2.9 and 2.10:
11+
To include this module in your Lift project, add the following to `build.sbt`:
1112

12-
"net.liftmodules" %% "machine_2.5" % "1.2"
13+
libraryDependencies += "net.liftmodules" %% "machine_3.0" % "1.3.0"
1314

14-
*Lift 2.6.x* for Scala 2.9, 2.10 and 2.11:
15+
### Releases
1516

16-
"net.liftmodules" %% "machine_2.6" % "1.3-SNAPSHOT"
1717

18-
*Lift 3.0.x* for Scala 2.10:
18+
| Lift Version | Scala Version | Module Version |
19+
|--------------|---------------|----------------|
20+
| 3.0.x | 2.11, 2.10 | 1.3 |
21+
| 2.5.x | 2.10, 2.9 | 1.2 |
1922

20-
"net.liftmodules" %% "machine_3.0" % "1.2-SNAPSHOT"
23+
24+
### Historic Snapshots
25+
26+
| Lift Version | Scala Version | Module Version |
27+
|--------------|-----------------|----------------|
28+
| 2.6.x | 2.11, 2.9, 2.10 | 1.3-SNAPSHOT |
29+
| 3.0.x | 2.10 | 1.2-SNAPSHOT |
2130

2231

2332
Documentation
@@ -31,5 +40,4 @@ Documentation
3140
Notes for module developers
3241
===========================
3342

34-
* The [Jenkins build](https://liftmodules.ci.cloudbees.com/job/machine/) is triggered on a push to master.
35-
43+
Merge to master will trigger a Travis build and publish a SNAPSHOT (if the version is a -SNAPSHOT).

travis-publish.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# Automatically publish snapshots for branches pushed to master.
4+
5+
if [[ "${TRAVIS_PULL_REQUEST}" == "false" &&
6+
"${TRAVIS_BRANCH}" == "master" &&
7+
$(cat build.sbt) =~ "-SNAPSHOT"
8+
]]; then
9+
sbt +publish
10+
fi

0 commit comments

Comments
 (0)