From 370e9d089fbd97d848b2fc34eb9251ac9f435a69 Mon Sep 17 00:00:00 2001 From: Austin Shalit Date: Sat, 8 Aug 2020 09:10:10 -0700 Subject: [PATCH] [build] Remove Azure Pipelines CI --- README.md | 1 - azure-pipelines.yml | 77 --------------------------- azure-templates/clang-format.sh | 62 --------------------- azure-templates/job-build-cmake.yml | 31 ----------- azure-templates/job-build-mac.yml | 21 -------- azure-templates/job-build-vcpkg.yml | 26 --------- azure-templates/job-build-win32.yml | 30 ----------- azure-templates/job-build.yml | 60 --------------------- azure-templates/job-styleguide.yml | 36 ------------- azure-templates/stage-combine.yml | 76 -------------------------- azure-templates/vcpkg_x64-windows.txt | 3 -- 11 files changed, 423 deletions(-) delete mode 100644 azure-pipelines.yml delete mode 100755 azure-templates/clang-format.sh delete mode 100644 azure-templates/job-build-cmake.yml delete mode 100644 azure-templates/job-build-mac.yml delete mode 100644 azure-templates/job-build-vcpkg.yml delete mode 100644 azure-templates/job-build-win32.yml delete mode 100644 azure-templates/job-build.yml delete mode 100644 azure-templates/job-styleguide.yml delete mode 100644 azure-templates/stage-combine.yml delete mode 100644 azure-templates/vcpkg_x64-windows.txt diff --git a/README.md b/README.md index 04bf6f0b79..55627448e8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # WPILib Project ![CI](https://github.com/wpilibsuite/allwpilib/workflows/CI/badge.svg) -[![Build Status](https://dev.azure.com/wpilib/wpilib/_apis/build/status/wpilibsuite.allwpilib)](https://dev.azure.com/wpilib/wpilib/_build/latest?definitionId=1) Welcome to the WPILib project. This repository contains the HAL, WPILibJ, and WPILibC projects. These are the core libraries for creating robot programs for the roboRIO. diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index fc4d4408fb..0000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,77 +0,0 @@ -# Build and testing pipeline on Azure. - -resources: - containers: - - container: wpilib2020 - image: wpilib/roborio-cross-ubuntu:2020-18.04 - - container: raspbian - image: wpilib/raspbian-cross-ubuntu:10-18.04 - - container: aarch64 - image: wpilib/aarch64-cross-ubuntu:bionic-18.04 - - container: ubuntu - image: wpilib/ubuntu-base:18.04 - -variables: -- group: Artifactory-Package-Publish - -trigger: - batch: true - branches: - include: - - master - -stages: -- stage: Build - jobs: - - template: azure-templates/job-build-vcpkg.yml - - - template: azure-templates/job-build.yml - parameters: - jobName: Linux_Arm - buildOptions: '-Ponlylinuxathena' - artifactName: 'Athena' - - - template: azure-templates/job-build.yml - parameters: - jobName: Linux_Raspbian - container: raspbian - buildOptions: '-Ponlylinuxraspbian' - artifactName: 'Raspbian' - - - template: azure-templates/job-build.yml - parameters: - jobName: Linux_Aarch64 - container: aarch64 - buildOptions: '-Ponlylinuxaarch64bionic' - artifactName: 'Aarch64' - - - template: azure-templates/job-build.yml - parameters: - jobName: Linux - container: ubuntu - artifactName: 'Linux' - - - template: azure-templates/job-build.yml - parameters: - jobName: Windows_64_Bit - pool: - vmImage: 'windows-2019' - container: '' - jdkVersionOption: '1.11' - buildOptions: '-PskipPMD' - artifactName: 'Win64' - - - template: azure-templates/job-build-win32.yml - - - template: azure-templates/job-build-mac.yml - - - template: azure-templates/job-build-cmake.yml - - - template: azure-templates/job-styleguide.yml - -- template: azure-templates/stage-combine.yml - parameters: - publish: True - publishUserName: $(PublishUserName) - publishPassword: $(PublishPassword) - artifacts: [Mac, Win32, Win64, Linux, Raspbian, Athena, Aarch64] diff --git a/azure-templates/clang-format.sh b/azure-templates/clang-format.sh deleted file mode 100755 index 0b72f3b51c..0000000000 --- a/azure-templates/clang-format.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/bash -################################################################################ -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -################################################################################ -# -# This script will install the llvm toolchain on the different -# Debian and Ubuntu versions - -set -eux - -# read optional command line argument -LLVM_VERSION=10 -if [ "$#" -eq 1 ]; then - LLVM_VERSION=$1 -fi - -DISTRO=$(lsb_release -is) -VERSION=$(lsb_release -sr) -DIST_VERSION="${DISTRO}_${VERSION}" - -if [[ $EUID -ne 0 ]]; then - echo "This script must be run as root!" - exit 1 -fi - -declare -A LLVM_VERSION_PATTERNS -LLVM_VERSION_PATTERNS[9]="-9" -LLVM_VERSION_PATTERNS[10]="-10" -LLVM_VERSION_PATTERNS[11]="" - -if [ ! ${LLVM_VERSION_PATTERNS[$LLVM_VERSION]+_} ]; then - echo "This script does not support LLVM version $LLVM_VERSION" - exit 3 -fi - -LLVM_VERSION_STRING=${LLVM_VERSION_PATTERNS[$LLVM_VERSION]} - -# find the right repository name for the distro and version -case "$DIST_VERSION" in - Debian_9* ) REPO_NAME="deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch$LLVM_VERSION_STRING main" ;; - Debian_10* ) REPO_NAME="deb http://apt.llvm.org/buster/ llvm-toolchain-buster$LLVM_VERSION_STRING main" ;; - Debian_unstable ) REPO_NAME="deb http://apt.llvm.org/unstable/ llvm-toolchain$LLVM_VERSION_STRING main" ;; - Debian_testing ) REPO_NAME="deb http://apt.llvm.org/unstable/ llvm-toolchain$LLVM_VERSION_STRING main" ;; - Ubuntu_16.04 ) REPO_NAME="deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial$LLVM_VERSION_STRING main" ;; - Ubuntu_18.04 ) REPO_NAME="deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic$LLVM_VERSION_STRING main" ;; - Ubuntu_18.10 ) REPO_NAME="deb http://apt.llvm.org/cosmic/ llvm-toolchain-cosmic$LLVM_VERSION_STRING main" ;; - Ubuntu_19.04 ) REPO_NAME="deb http://apt.llvm.org/disco/ llvm-toolchain-disco$LLVM_VERSION_STRING main" ;; - Ubuntu_19.10 ) REPO_NAME="deb http://apt.llvm.org/eoan/ llvm-toolchain-eoan$LLVM_VERSION_STRING main" ;; - Ubuntu_20.04 ) REPO_NAME="deb http://apt.llvm.org/focal/ llvm-toolchain-focal$LLVM_VERSION_STRING main" ;; - * ) - echo "Distribution '$DISTRO' in version '$VERSION' is not supported by this script (${DIST_VERSION})." - exit 2 -esac - - -# install everything -wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - -add-apt-repository "${REPO_NAME}" -apt-get update -apt-get install -y clang-format-$LLVM_VERSION diff --git a/azure-templates/job-build-cmake.yml b/azure-templates/job-build-cmake.yml deleted file mode 100644 index 4f55a0eb61..0000000000 --- a/azure-templates/job-build-cmake.yml +++ /dev/null @@ -1,31 +0,0 @@ -# Job for building - -parameters: - pool: - vmImage: 'Ubuntu 16.04' - container: wpilib2020 - preBuild: [] - -jobs: -- job: CMake - pool: ${{ parameters.pool }} - - ${{ if ne(parameters.container, '') }}: - container: ${{ parameters.container }} - - workspace: - clean: all - - timeoutInMinutes: 0 - - steps: - - ${{ parameters.preBuild }} - - - task: CMake@1 - inputs: - cmakeArgs: '-DWITHOUT_ALLWPILIB=OFF ..' - - - script: | - make -j3 - workingDirectory: 'build' - displayName: 'Build' diff --git a/azure-templates/job-build-mac.yml b/azure-templates/job-build-mac.yml deleted file mode 100644 index c49b6d9935..0000000000 --- a/azure-templates/job-build-mac.yml +++ /dev/null @@ -1,21 +0,0 @@ -# Job for mac - -parameters: - pool: - vmImage: 'macOS-10.14' - preBuild: [] - -jobs: -- template: job-build.yml - parameters: - jobName: 'Mac' - pool: ${{ parameters.pool }} - container: '' - jdkVersionOption: '1.11' - artifactName: 'Mac' - preBuild: - - ${{ parameters.preBuild }} - - script: | - mkdir build - export JAVA_HOME=`/usr/libexec/java_home -v 11` - displayName: 'Setup JDK' diff --git a/azure-templates/job-build-vcpkg.yml b/azure-templates/job-build-vcpkg.yml deleted file mode 100644 index ee445344bb..0000000000 --- a/azure-templates/job-build-vcpkg.yml +++ /dev/null @@ -1,26 +0,0 @@ -jobs: -- job: Windows_CMake - pool: - vmImage: 'windows-2019' - - variables: - vcpkgGitRef: 544f8e4593764f78faa94bac2adb81cca5232943 - - steps: - - task: Cache@2 - displayName: Cache vcpkg - inputs: - key: $(Build.SourcesDirectory)/azure-templates/vcpkg_x64-windows.txt | "$(vcpkgGitCommitId)" | "$(Agent.OS)" - path: '$(Build.BinariesDirectory)/vcpkg' - - task: run-vcpkg@0 - displayName: Run vcpkg - inputs: - vcpkgArguments: '@$(Build.SourcesDirectory)/azure-templates/vcpkg_x64-windows.txt' - vcpkgGitCommitId: $(vcpkgGitRef) - - task: run-cmake@0 - displayName: Build With CMake - inputs: - cmakeListsOrSettingsJson: 'CMakeListsTxtAdvanced' - vcpkgTriplet: '$(RUNVCPKG_VCPKG_TRIPLET)' - useVcpkgToolchainFile: true - cmakeAppendedArgs: '-DWITHOUT_JAVA=ON -DWITHOUT_ALLWPILIB=OFF -DWITHOUT_CSCORE=OFF' diff --git a/azure-templates/job-build-win32.yml b/azure-templates/job-build-win32.yml deleted file mode 100644 index ce56a81bae..0000000000 --- a/azure-templates/job-build-win32.yml +++ /dev/null @@ -1,30 +0,0 @@ -# Job for win 32. - -parameters: - pool: - vmImage: 'windows-2019' - preBuild: [] - -jobs: -- template: job-build.yml - parameters: - jobName: 'Windows_32_Bit' - pool: ${{ parameters.pool }} - container: '' - gradleOptions: '-Xmx1024m' - buildOptions: '-PskipPMD' - artifactName: 'Win32' - preBuild: - - ${{ parameters.preBuild }} - - powershell: | - mkdir build - $ProgressPreference = 'SilentlyContinue' - wget "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.4%2B11/OpenJDK11U-jdk_x86-32_windows_hotspot_11.0.4_11.zip" -O "build\jdk.zip" - displayName: 'Download JDK' - - task: JavaToolInstaller@0 - inputs: - versionSpec: '11' - jdkSourceOption: localDirectory - jdkFile: 'build/jdk.zip' - jdkDestinationDirectory: 'build/jdkinst' - jdkArchitectureOption: x86 diff --git a/azure-templates/job-build.yml b/azure-templates/job-build.yml deleted file mode 100644 index 7b8796c9cd..0000000000 --- a/azure-templates/job-build.yml +++ /dev/null @@ -1,60 +0,0 @@ -# Job for building - -parameters: - jobName: '' - pool: - vmImage: 'Ubuntu 16.04' - container: wpilib2020 - preBuild: [] - gradleOptions: '' - jdkVersionOption: '' - buildOptions: '' - artifactName: '' - -jobs: -- job: ${{ parameters.jobName }} - pool: ${{ parameters.pool }} - - ${{ if ne(parameters.container, '') }}: - container: ${{ parameters.container }} - - workspace: - clean: all - - timeoutInMinutes: 0 - - steps: - - ${{ parameters.preBuild }} - -# PR Builds - - ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) }}: - - task: Gradle@2 - inputs: - workingDirectory: '' - gradleWrapperFile: 'gradlew' - gradleOptions: '-Xmx3072m ${{ parameters.gradleOptions }}' - ${{ if ne(parameters.jdkVersionOption, '') }}: - jdkVersionOption: ${{ parameters.jdkVersionOption }} - publishJUnitResults: true - testResultsFiles: '**/TEST-*.xml' - tasks: 'build' - options: '-PbuildServer ${{ parameters.buildOptions }}' - -# Tagged Builds - - ${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}: - - task: Gradle@2 - inputs: - workingDirectory: '' - gradleWrapperFile: 'gradlew' - gradleOptions: '-Xmx3072m ${{ parameters.gradleOptions }}' - ${{ if ne(parameters.jdkVersionOption, '') }}: - jdkVersionOption: ${{ parameters.jdkVersionOption }} - publishJUnitResults: true - testResultsFiles: '**/TEST-*.xml' - tasks: 'build' - options: '-PreleaseMode -PbuildServer ${{ parameters.buildOptions }}' - - - task: PublishPipelineArtifact@0 - inputs: - artifactName: ${{ parameters.artifactName }} - targetPath: 'build/allOutputs' diff --git a/azure-templates/job-styleguide.yml b/azure-templates/job-styleguide.yml deleted file mode 100644 index 6a7b1f0bb3..0000000000 --- a/azure-templates/job-styleguide.yml +++ /dev/null @@ -1,36 +0,0 @@ -# Job for checking wpiformat violations - -parameters: - jobName: '' - pool: - vmImage: 'Ubuntu 18.04' - -jobs: -- job: Styleguide - pool: ${{ parameters.pool }} - - container: ubuntu - - workspace: - clean: all - - timeoutInMinutes: 0 - - steps: - - script: | - sudo apt-get update -q - sudo apt-get install gnupg lsb-release software-properties-common -y - chmod +x azure-templates/clang-format.sh - sudo ./azure-templates/clang-format.sh 10 - sudo pip3 install wpiformat - displayName: 'Install wpiformat' - - - script: | - git checkout -b master - wpiformat -clang 10 - displayName: 'Run wpiformat' - - - script: | - # Ensure formatter made no changes - git --no-pager diff --exit-code HEAD - displayName: 'Check wpiformat Output' diff --git a/azure-templates/stage-combine.yml b/azure-templates/stage-combine.yml deleted file mode 100644 index 1e1d741886..0000000000 --- a/azure-templates/stage-combine.yml +++ /dev/null @@ -1,76 +0,0 @@ -# Stage to combine artifacts into a single output - -parameters: - publish: False - publishUserName: '' - publishPassword: '' - artifacts: [] - -stages: -- stage: Combine - jobs: - - job: CombineJob - pool: - vmImage: 'macOS-10.14' - - timeoutInMinutes: 0 - - steps: - - checkout: none - - - script: | - git clone https://github.com/wpilibsuite/build-tools - displayName: 'Clone Combiner' - - - ${{ each artifact in parameters.artifacts }}: - - task: DownloadPipelineArtifact@0 - displayName: 'DownloadPipelineArtifact ${{ artifact }}' - inputs: - artifactName: ${{ artifact }} - targetPath: 'build-tools/combiner/products/build/allOutputs' - -# PR Builds - - ${{ if and(ne(variables['Build.SourceBranch'], 'refs/heads/master'), not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))) }}: - - task: Gradle@2 - inputs: - workingDirectory: 'build-tools/combiner' - gradleWrapperFile: 'build-tools/combiner/gradlew' - gradleOptions: '-Xmx3072m' - tasks: 'publish ' - options: '-Pallwpilib' - -# Master Builds - - ${{ if and(parameters.publish, eq(variables['Build.SourceBranch'], 'refs/heads/master')) }}: - - task: Gradle@2 - inputs: - workingDirectory: 'build-tools/combiner' - gradleWrapperFile: 'build-tools/combiner/gradlew' - gradleOptions: '-Xmx3072m' - tasks: 'publish ' - options: '-Pallwpilib' - env: - RUN_AZURE_ARTIFACTORY_RELEASE: 'TRUE' - ARTIFACTORY_PUBLISH_USERNAME: $(publishUserName) - ARTIFACTORY_PUBLISH_PASSWORD: $(publishPassword) - -# Tagged Builds - - ${{ if and(parameters.publish, startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) }}: - - task: Gradle@2 - inputs: - workingDirectory: 'build-tools/combiner' - gradleWrapperFile: 'build-tools/combiner/gradlew' - gradleOptions: '-Xmx3072m' - tasks: 'publish ' - options: '-Pallwpilib -PreleaseRepoPublish' - env: - RUN_AZURE_ARTIFACTORY_RELEASE: 'TRUE' - ARTIFACTORY_PUBLISH_USERNAME: $(publishUserName) - ARTIFACTORY_PUBLISH_PASSWORD: $(publishPassword) - - - script: | - echo "##vso[task.setvariable variable=UserHome]$HOME" - displayName: 'Set Home Variable' - - task: PublishPipelineArtifact@0 - inputs: - artifactName: 'Maven' - targetPath: $(UserHome)/releases diff --git a/azure-templates/vcpkg_x64-windows.txt b/azure-templates/vcpkg_x64-windows.txt deleted file mode 100644 index a1a1332a3d..0000000000 --- a/azure-templates/vcpkg_x64-windows.txt +++ /dev/null @@ -1,3 +0,0 @@ ---triplet -x64-windows -opencv