From 41a6afc3851c5a7c3c159d773ea7d68c807b3f83 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Mon, 29 Jul 2019 08:07:12 +1000 Subject: [PATCH 1/5] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..aa91291 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,19 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: +- script: echo Hello, world! + displayName: 'Run a one-line script' + +- script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: 'Run a multi-line script' From a8b70372fa5559b4d6d096288a69ff44e4098a3d Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Mon, 29 Jul 2019 08:13:32 +1000 Subject: [PATCH 2/5] fill in pipelines build for MSRV --- .travis.yml | 24 ------------------------ azure-pipelines.yml | 40 +++++++++++++++++++++++++--------------- 2 files changed, 25 insertions(+), 39 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cebc669..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: rust -rust: - - 1.23.0 - - stable - - beta - - nightly -sudo: false -before_script: - - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH -script: - - cargo build --verbose - - cargo test --verbose - - cargo doc --no-deps -after_success: - - travis-cargo --only nightly doc-upload -env: - global: - secure: "AabAhHaQBO8LF3D1c9xFTpeLW2MH09719QUd99O24jqyTc02dzxZ2faLGupAwE+EBfjb6YWuWugvWDmcxGOzWs3QeYH+t/j319IeXeiULBc6wuNTMh4rHOZ5F9IQx+RPYDltIMIZTPsbRjF/yaGdUDIRy38FD4hDGmBWSYdubSo=" - - - -notifications: - email: - on_success: never diff --git a/azure-pipelines.yml b/azure-pipelines.yml index aa91291..e390bbd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,19 +1,29 @@ -# Starter pipeline -# Start with a minimal pipeline that you can customize to build and deploy your code. -# Add steps that build, run tests, deploy, and more: -# https://aka.ms/yaml +jobs: -trigger: -- master +# linux-x64 build +- job: LinuxBuild + pool: + vmImage: 'ubuntu-16.04' + steps: + - script: | + curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.23.0 + echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" + - script: rustup default 1.23.0 -pool: - vmImage: 'ubuntu-latest' + - script: cargo test -steps: -- script: echo Hello, world! - displayName: 'Run a one-line script' +# win-x64 build +- job: WindowsBuild + pool: + vmImage: 'vs2017-win2016' + variables: + rustflags: '-C target-feature=+crt-static' + steps: + - script: | + curl -sSf -o rustup-init.exe https://win.rustup.rs + rustup-init.exe -y --default-toolchain 1.23.0 + - script: rustup default 1.23.0 -- script: | - echo Add other tasks to build, test, and deploy your project. - echo See https://aka.ms/yaml - displayName: 'Run a multi-line script' + - powershell: | + $env:PATH = "$env:PATH;$env:USERPROFILE\.cargo\bin" + cargo test From 3d6793936a45628c2a908801a322f08cd39dc884 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Mon, 29 Jul 2019 08:17:29 +1000 Subject: [PATCH 3/5] add OSX build --- azure-pipelines.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e390bbd..df8175d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,7 +1,7 @@ jobs: # linux-x64 build -- job: LinuxBuild +- job: Linux (rustc 1.23.0) pool: vmImage: 'ubuntu-16.04' steps: @@ -12,8 +12,20 @@ jobs: - script: cargo test +# osx-x64 build +- job: OSX (rustc 1.23.0) + pool: + vmImage: 'macOS-10.13' + steps: + - script: | + curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.23.0 + echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" + - script: rustup default 1.23.0 + + - script: cargo test + # win-x64 build -- job: WindowsBuild +- job: Windows (rustc 1.23.0) pool: vmImage: 'vs2017-win2016' variables: From e87d0637549979ff429cf059b194a98bbf4c1366 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Mon, 29 Jul 2019 08:18:29 +1000 Subject: [PATCH 4/5] fine then --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index df8175d..693e377 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,7 +1,7 @@ jobs: # linux-x64 build -- job: Linux (rustc 1.23.0) +- job: Linux_Build pool: vmImage: 'ubuntu-16.04' steps: @@ -13,7 +13,7 @@ jobs: - script: cargo test # osx-x64 build -- job: OSX (rustc 1.23.0) +- job: OSX_Build pool: vmImage: 'macOS-10.13' steps: @@ -25,7 +25,7 @@ jobs: - script: cargo test # win-x64 build -- job: Windows (rustc 1.23.0) +- job: Windows_Build pool: vmImage: 'vs2017-win2016' variables: From 6e7591d0c951ce2e922a10c328ea76920176f1f9 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Mon, 29 Jul 2019 08:22:28 +1000 Subject: [PATCH 5/5] update readme badges --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e61a976..f98bad2 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ glob Support for matching file paths against Unix shell style patterns. -[![Build Status](https://travis-ci.org/rust-lang-nursery/glob.svg?branch=master)](https://travis-ci.org/rust-lang-nursery/glob) +[![Build Status](https://dev.azure.com/rust-lang/glob/_apis/build/status/rust-lang-nursery.glob?branchName=master)](https://dev.azure.com/rust-lang/glob/_build/latest?definitionId=20&branchName=master) -[Documentation](https://doc.rust-lang.org/glob) +[Documentation](https://docs.rs/glob) ## Usage