-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 1.1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: java
jdk:
- oraclejdk8
# Handle git submodules yourself
git:
submodules: false
before_install:
# Manually install the ant 1.9.3 for Java 1.8 support
- wget https://github.com/RoboticsTeam4904/AntMirror/raw/master/apache-ant-1.9.3-bin.tar.bz2
- tar xvf apache-ant-1.9.3-bin.tar.bz2
- test -f /usr/share/ant || sudo mv /usr/share/ant /usr/share/apache-ant-stock
- sudo mv apache-ant-1.9.3 /usr/share/
- sudo update-alternatives --install /usr/share/ant ant-bins /usr/share/apache-ant-1.9.3 1
- sudo update-alternatives --install /usr/bin/ant ant /usr/share/apache-ant-1.9.3/bin/ant 1
- sudo update-alternatives --config ant-bins
- sudo update-alternatives --config ant
# Use sed to replace the SSH URL with the public URL, then initialize submodules
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
install:
- git clone https://github.com/RoboticsTeam4904/wpilib-mirror.git ~/wpilib
- mkdir -p ~/wpilib/user/java/lib
- git clone https://github.com/RoboticsTeam4904/4904-USERLIBS.git ~/wpilib/user/java/lib
notifications:
email: none
script: ant jar