Skip to content

Commit 201ee74

Browse files
committed
Only execute examples on the latest scala version
1 parent 5946c55 commit 201ee74

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.travis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
language: scala
22
sudo: false
33

4-
scala:
5-
- 2.11.12
6-
- 2.12.6
4+
matrix:
5+
include:
6+
- scala: 2.11
7+
- scala: 2.12
8+
env: EXECUTE_EXAMPLES=true
9+
fast_finish: true
710

811
cache:
912
directories:
@@ -13,7 +16,10 @@ before_cache:
1316
- rm -rf $HOME/.m2/repository/io/cucumber
1417

1518
before_install:
16-
- export MODULES_TO_RUN="scala/scala_"$(echo $TRAVIS_SCALA_VERSION | sed -e 's/\([0-9]*\.[0-9]*\)\..*/\1/')",examples" && echo $MODULES_TO_RUN
19+
- |
20+
export MODULES_TO_RUN="scala/scala_"$(echo $TRAVIS_SCALA_VERSION | sed -e 's/\([0-9]*\.[0-9]*\)\..*/\1/')
21+
[[ $EXECUTE_EXAMPLES = true ]] && export MODULES_TO_RUN=$MODULES_TO_RUN",examples"
22+
echo $MODULES_TO_RUN
1723
1824
install:
1925
- mvn install -pl $MODULES_TO_RUN -DskipTests=true -Dmaven.javadoc.skip=true -B -V

0 commit comments

Comments
 (0)