Skip to content

Commit

Permalink
[travis] Updates Travis Maven and enforces Maven version (brianfrankc…
Browse files Browse the repository at this point in the history
…ooper#1392)

* Enforce not using Maven 3.6.2

* Use Maven 3.6.3 via Maven wrapper for Travis
  • Loading branch information
risdenk authored Feb 1, 2020
1 parent 961a3dd commit 96eb2c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ addons:
hostname: myshorthost
postgresql: "9.5"

install: mvn install -q -DskipTests=true
install:
- mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=3.6.3
- ./mvnw install -q -DskipTests=true

script: mvn test -q
script: ./mvnw test -q

before_script:
- psql -c 'CREATE database test;' -U postgres
- psql -c 'CREATE TABLE usertable (YCSB_KEY VARCHAR(255) PRIMARY KEY not NULL, YCSB_VALUE JSONB not NULL);' -U postgres -d test
- psql -c 'GRANT ALL PRIVILEGES ON DATABASE test to postgres;' -U postgres


# Services to start for tests.
services:
- ignite
Expand All @@ -48,6 +49,5 @@ services:
# temporarily disable riak. failing, docs offline.
# - riak


# Can't use container based infra because of hosts/hostname
sudo: true
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ LICENSE file.
<configuration>
<rules>
<requireMavenVersion>
<version>3.1.0</version>
<!--
Maven 3.6.2 has issues
https://github.com/brianfrankcooper/YCSB/issues/1390
-->
<version>[3.1.0,3.6.2),(3.6.2,)</version>
</requireMavenVersion>
</rules>
</configuration>
Expand Down

0 comments on commit 96eb2c4

Please sign in to comment.