From 1eb31964a85fe56b159bd24ead520a49f7dae089 Mon Sep 17 00:00:00 2001 From: Sam Tobin-Hochstadt Date: Sat, 15 Sep 2018 12:07:36 -0400 Subject: [PATCH] Set up CI with Azure Pipelines (#2260) Includes windows testing. Many thanks to @chrisrpatterson for help with setting this up. --- azure-pipelines.yml | 71 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000000..33ec83e437 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,71 @@ +# C/C++ with GCC +# Build your C/C++ project with GCC using make. +# Add steps that publish test results, save build artifacts, deploy, and more: +# https://docs.microsoft.com/vsts/pipelines/apps/c-cpp/gcc + +jobs: +- job: Linux + pool: + vmImage: ubuntu-16.04 + + steps: + - checkout: self + fetchDepth: 5 + + - script: + make CPUS="2" PKGS="racket-test db-test unstable-flonum-lib net-test" CONFIGURE_ARGS_qq="$RACKET_CONFIGURE_ARGS" + displayName: 'make' + + - script: | + export PATH=$PATH:`pwd`/racket/bin + raco test -l tests/racket/test + racket -l tests/racket/contract/all + raco test -l tests/json/json + raco test -l tests/file/main + raco test -l tests/net/head + raco test -l tests/net/uri-codec + raco test -l tests/net/url + raco test -l tests/net/url-port + raco test -l tests/net/encoders + raco test -l tests/openssl/basic + raco test -l tests/openssl/https + raco test -l tests/match/main + raco test -l tests/zo-path + raco test -l tests/xml/test + raco test -l tests/db/all-tests + raco test -c tests/stxparse + displayName: test + +- job: Windows + pool: + vmImage: vs2015-win2012r2 + + steps: + - checkout: self + fetchDepth: 5 + + - script: | + call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\vc\vcvarsall.bat" x86 + echo %cd% + nmake win32-in-place PKGS="racket-test unstable-flonum-lib net-test" + displayName: Build + + - script: | + echo %cd% + racket\raco.exe pkg show -l + racket\racket.exe -l tests/racket/test + racket\racket.exe -l tests/racket/contract/all + racket\raco.exe test -l tests/json/json + racket\raco.exe test -l tests/file/main + racket\raco.exe test -l tests/net/head + racket\raco.exe test -l tests/net/uri-codec + racket\raco.exe test -l tests/net/url + racket\raco.exe test -l tests/net/url-port + racket\raco.exe test -l tests/net/encoders + racket\raco.exe test -l tests/openssl/basic + racket\raco.exe test -l tests/openssl/https + racket\raco.exe test -l tests/match/main + racket\raco.exe test -l tests/zo-path + racket\raco.exe test -l tests/xml/test + racket\raco.exe test -c tests/stxparse + displayName: Test \ No newline at end of file