Skip to content

Commit b12876d

Browse files
author
James Hagborg
committed
Get testing working in 2018, move Travis to Xenial.
1 parent 26efe08 commit b12876d

16 files changed

+101
-431
lines changed

.travis.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1+
dist: xenial
12
language: java
2-
jdk:
3-
- oraclejdk8
4-
sudo: required
53

6-
services:
7-
- docker
8-
9-
before_install:
10-
- docker build -t my-image .
11-
12-
install:
13-
- echo "skip 'gradle assemble' step"
14-
15-
script:
16-
- docker run -v "$(pwd):/hyperLib" my-image /hyperLib/.travis_docker_script.sh
4+
before_cache:
5+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
6+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
7+
cache:
8+
directories:
9+
- $HOME/.gradle/caches/
10+
- $HOME/.gradle/wrapper/
1711

1812
notifications:
1913
slack:
@@ -23,8 +17,6 @@ notifications:
2317

2418
env:
2519
global:
26-
- GRADLE_CACHES="/home/travis/.gradle"
27-
- DOCKER_GRADLE_CACHES="/root/.gradle"
2820
- secure: KbemNv66/YeG1d5rh/DIQ/IzFGO+jkUIxyrC/Rv6qqgIAIzPljTAgvbOwlIS4VWxAc+6u3TgZ1ITHqcISmqQBd3xfqnSjzGyCmiumXmKjP3f/lsXOY0G2dqK8B5UxGyWfHuOldDIZxVs0nlNfW8cvgnVtWikAl+8oM+vZ6OFm6nZf1IqZU7PHHsF8sxi5H2PGo3IJjhkNNpjbi/N+KHpNyeKOPHGmu5jxUg1y+Xk+tpSDij/ko3URy5r1D+GX/BaZBAcRAIk4e1LIka4v6XVhbenO1vTKtmaoWhlSPpdjhi9/6No/rWWb2c+BzaN2hBhyU6g5ZY7goNsb9uzrh3LDWBiXoASPaVMOK17VTJRlARYcXRUK9HgAMj1o8wdgREVFKy8aTIX3amep2O114tnkTbCAefqWqESev5FMY/8TTsoUepO1f7La2EPt4xuckXJBLfb2yH8bbP8u8n8PtHjUJ+jmerGq3MlP8EQj21Qxk299KZ5/NaL2lnYN7krlb+2IMiDJX1Xb3AUVDtM3BFiCefLVPd7EAqbGgicSHRgal1YYaaOVmRq1kqBtTG72Pslh0PHRfjDpWG7NbNntZJG/S05iLJS9cpDeoyEri7mjC48L7Ej/V2Wwd0lEQyWf98FBFvWLja6S5o0VTjE5K1LEWoNpshxia7uZUYiW3JeC9o=
2921

3022
deploy:

.travis_docker_script.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 5 deletions
This file was deleted.

ant/robot_inspector.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

build.gradle

Lines changed: 51 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,30 @@ allprojects {
2020
}
2121
}
2222

23+
def WPILIB_VER = '2019.1.1-beta-1'
24+
def OPENCV_VER = '3.4.3-15'
25+
def JUNIT_VER = '5.3.1'
26+
2327
dependencies {
24-
compile group: 'edu.wpi.first.wpilibj', name: 'wpilibj-java', version: '2018.+'
25-
// We only need the desktop version right now, since this build file is only used for local testing.
26-
compile group: 'edu.wpi.first.ntcore', name: 'ntcore-java', version: '4.+'
27-
compile group: 'edu.wpi.first.wpiutil', name: 'wpiutil-java', version: '3.+'
28-
compile group: 'org.opencv', name: 'opencv-java', version: '3.2.0'
29-
compile group: 'edu.wpi.first.cscore', name: 'cscore-java', version: '1.3.+'
30-
31-
runtime group: 'edu.wpi.first.wpilibj', name: 'wpilibj-jni', version: '2018.+', classifier: 'all'
32-
runtime group: 'edu.wpi.first.ntcore', name: 'ntcore-jni', version: '4.+', classifier: 'all'
33-
runtime group: 'org.opencv', name: 'opencv-jni', version: '3.2.0', classifier: 'all'
34-
runtime group: 'edu.wpi.first.cscore', name: 'cscore-jni', version: '1.3.+', classifier: 'all'
28+
// We may or may not need to add the new HAL library which was split off
29+
// from wpilib. Ideally we don't have to touch it at all.
30+
compile "edu.wpi.first.wpilibj:wpilibj-java:$WPILIB_VER"
31+
compile "edu.wpi.first.ntcore:ntcore-java:$WPILIB_VER"
32+
compile "edu.wpi.first.wpiutil:wpiutil-java:$WPILIB_VER"
33+
compile "edu.wpi.first.cscore:cscore-java:$WPILIB_VER"
34+
compile "edu.wpi.first.cameraserver:cameraserver-java:$WPILIB_VER"
35+
compile "edu.wpi.first.thirdparty.frc2019.opencv:opencv-java:$OPENCV_VER"
36+
37+
// Do not require these as runtime dependencies, since WPILib doesn't.
38+
// The user can figure out what version they need (RIO vs. desktop).
39+
testRuntime "edu.wpi.first.ntcore:ntcore-jni:$WPILIB_VER:all"
40+
testRuntime "edu.wpi.first.cscore:cscore-jni:$WPILIB_VER:all"
41+
testRuntime "org.junit.jupiter:junit-jupiter-engine:$JUNIT_VER"
3542

36-
testCompile group: 'junit', name: 'junit', version: '4.+'
37-
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
38-
testCompile group: 'com.google.guava', name: 'guava', version: '19.0'
43+
testCompile "org.junit.jupiter:junit-jupiter-api:$JUNIT_VER"
44+
testCompile "org.junit.jupiter:junit-jupiter-params:$JUNIT_VER"
45+
testCompile 'org.hamcrest:hamcrest-library:1.3'
46+
testCompile 'com.google.guava:guava:19.0'
3947
}
4048

4149
test {
@@ -64,34 +72,34 @@ artifacts {
6472

6573
publishing {
6674
publications {
67-
mavenPublication(MavenPublication) {
68-
from components.java
69-
artifact sourcesJar {
70-
classifier 'sources'
71-
}
72-
artifact javadocJar {
73-
classifier 'javadoc'
74-
}
75-
76-
groupId 'org.hyperonline'
77-
artifactId 'hyperlib'
78-
79-
pom {
80-
name = 'hyperLib'
81-
description = 'Enhancements to WPILib'
82-
url = 'https://teamhyper.github.io/hyperLib'
83-
developers {
84-
developer {
85-
id = 'jhagborg'
86-
name = 'James Hagborg'
87-
88-
}
89-
}
90-
scm {
91-
url = 'https://github.com/teamhyper/hyperLib'
92-
}
93-
}
94-
}
75+
mavenPublication(MavenPublication) {
76+
from components.java
77+
artifact sourcesJar {
78+
classifier 'sources'
79+
}
80+
artifact javadocJar {
81+
classifier 'javadoc'
82+
}
83+
84+
groupId 'org.hyperonline'
85+
artifactId 'hyperlib'
86+
87+
pom {
88+
name = 'hyperLib'
89+
description = 'Enhancements to WPILib'
90+
url = 'https://teamhyper.github.io/hyperLib'
91+
developers {
92+
developer {
93+
id = 'blucoat'
94+
name = 'James Hagborg'
95+
96+
}
97+
}
98+
scm {
99+
url = 'https://github.com/teamhyper/hyperLib'
100+
}
101+
}
102+
}
95103
}
96104
}
97105

@@ -104,5 +112,5 @@ checkstyle {
104112
}
105113

106114
wrapper {
107-
gradleVersion = 4.9
115+
gradleVersion = '4.10.2'
108116
}

gradle/wrapper/gradle-wrapper.jar

1.72 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/test/java/edu/wpi/first/wpilibj/MockRobotStateInterface.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/test/java/edu/wpi/first/wpilibj/UnitTestUtility.java

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)