Skip to content

Commit d8ff9ff

Browse files
authored
Remove travis and appveyor (#935)
* Remove travis and appveyor files and references * Un-ignore tests that were disabled on travis or appveyor * Move javadoc publishing to Azure * Fix Javadoc errors
1 parent f789fb2 commit d8ff9ff

23 files changed

+56
-140
lines changed

.travis-scripts/push-javadoc-to-gh-pages.sh renamed to .azure-scripts/push-javadoc-to-gh-pages.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22

33
# Source of file: http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
4-
if [ "$TRAVIS_REPO_SLUG" == "WPIRoboticsProjects/GRIP" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [[ "$TRAVIS_OS_NAME" != "osx" ]]; then
4+
if [ -z "${GH_TOKEN}" ] && [ "${Build_SourceBranchName}" == "master" ]
5+
then
56

67
echo -e "Generating javadoc...\n"
78
./gradlew aggregateJavadocs
@@ -11,15 +12,15 @@ if [ "$TRAVIS_REPO_SLUG" == "WPIRoboticsProjects/GRIP" ] && [ "$TRAVIS_JDK_VERSI
1112
cp -R build/docs/javadoc $HOME/javadoc-latest
1213

1314
cd $HOME
14-
git config --global user.email "[email protected]"
15-
git config --global user.name "travis-ci"
15+
git config --global user.email "[email protected]"
16+
git config --global user.name "azure-pipelines"
1617
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/WPIRoboticsProjects/grip gh-pages #> /dev/null
1718

1819
cd gh-pages
1920
git rm -rf ./javadoc
2021
cp -Rf $HOME/javadoc-latest ./javadoc
2122
git add -f .
22-
git commit -m "Lastest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
23+
git commit -m "Lastest javadoc on successful Azure build ${Build_BuildNumber} auto-pushed to gh-pages"
2324
git push -fq origin gh-pages #> /dev/null
2425

2526
echo -e "Published Javadoc to gh-pages.\n"

.travis-scripts/before-deploy.sh

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

.travis-scripts/install.sh

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

.travis-scripts/linux-opencv-install.sh

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

.travis-scripts/osx-opencv-install.sh

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

.travis.yml

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

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
[![Join the chat at https://gitter.im/WPIRoboticsProjects/GRIP](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/WPIRoboticsProjects/GRIP?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
44
[![Build Status](https://dev.azure.com/wpiroboticsprojects/GRIP/_apis/build/status/WPIRoboticsProjects.GRIP?branchName=master)](https://dev.azure.com/wpiroboticsprojects/GRIP/_build/latest?definitionId=1?branchName=master)
5-
[![Build Status](https://travis-ci.org/WPIRoboticsProjects/GRIP.svg?branch=master)](https://travis-ci.org/WPIRoboticsProjects/GRIP)
6-
[![Build status](https://ci.appveyor.com/api/projects/status/sbrd2nhpiktlhf58/branch/master?svg=true)](https://ci.appveyor.com/project/JLLeitschuh/grip/branch/master)
75
[![codecov.io](http://codecov.io/github/WPIRoboticsProjects/GRIP/coverage.svg?branch=master)](http://codecov.io/github/WPIRoboticsProjects/GRIP?branch=master)
86
[![Github Releases](https://img.shields.io/github/downloads/WPIRoboticsProjects/GRIP/total.svg)](https://github.com/WPIRoboticsProjects/GRIP/releases/latest)
97

@@ -60,8 +58,3 @@ If you don't have an internet connection you can build using the `--offline` fla
6058
## Contributing
6159

6260
See the guide on [setting up build tools](https://github.com/WPIRoboticsProjects/GRIP/wiki/Setting-up-build-tools) in the wiki.
63-
64-
## Thanks
65-
66-
Thanks to [TravisCI](https://travis-ci.org/) and [AppVeyor](https://www.appveyor.com/) for providing their continuous integration
67-
servers to open source projects for free.

appveyor.yml

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

azure-pipelines.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ jobs:
3636
gradleOptions: '-Xmx3072m'
3737
publishJUnitResults: false
3838
tasks: 'check :ui:jpackage -Pgeneration -PjniLocation=build/OpenCVJNI -Pheadless=true -PlogTests -Pjdk13=/opt/java/jdk-13 --stacktrace'
39+
- script: |
40+
.azure-scripts/push-javadoc-to-gh-pages.sh
41+
displayName: 'Publish Javadocs'
42+
condition: |
43+
and(not(eq(variables['Build.Reason'], 'PullRequest')),
44+
eq(variables['Build.SourceBranch'], 'refs/heads/master'))
3945
4046
- task: CopyFiles@2
4147
inputs:

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ buildscript {
99
}
1010
dependencies {
1111
classpath(group = "edu.wpi.first.wpilib.opencv", name = "opencv-installer", version = "2.0.0")
12+
classpath("com.netflix.nebula:gradle-aggregate-javadocs-plugin:2.2.+")
13+
1214
}
1315
}
1416

@@ -25,6 +27,10 @@ plugins {
2527
id("com.gradle.build-scan") version "2.1"
2628
}
2729

30+
apply {
31+
plugin("nebula-aggregate-javadocs")
32+
}
33+
2834
buildScan {
2935
setTermsOfServiceUrl("https://gradle.com/terms-of-service")
3036
setTermsOfServiceAgree("yes")
@@ -171,3 +177,7 @@ tasks.register<JacocoReport>("jacocoRootReport") {
171177
csv.isEnabled = false
172178
}
173179
}
180+
181+
tasks.withType<Javadoc> {
182+
isFailOnError = false
183+
}

0 commit comments

Comments
 (0)