about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/azure-pipelines.yml
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-07-04T10·18+0100
committerVincent Ambo <tazjin@google.com>2019-07-04T10·18+0100
commitf723b8b878a3c4a4687b9e337a875500bebb39b1 (patch)
treee85204cf042c355e90cff61c111e7d8cd15df311 /third_party/bazel/rules_haskell/azure-pipelines.yml
parent2eb1dc26e42ffbdc168f05ef744bd4b4f3e4c36f (diff)
feat(third_party/bazel): Check in rules_haskell from Tweag r/17
Diffstat (limited to 'third_party/bazel/rules_haskell/azure-pipelines.yml')
-rw-r--r--third_party/bazel/rules_haskell/azure-pipelines.yml71
1 files changed, 71 insertions, 0 deletions
diff --git a/third_party/bazel/rules_haskell/azure-pipelines.yml b/third_party/bazel/rules_haskell/azure-pipelines.yml
new file mode 100644
index 000000000000..1ae3f7559003
--- /dev/null
+++ b/third_party/bazel/rules_haskell/azure-pipelines.yml
@@ -0,0 +1,71 @@
+jobs:
+- job: Windows
+  pool:
+    vmImage: 'vs2017-win2016'
+  steps:
+  - bash: |
+      set -e
+      curl -LO https://github.com/bazelbuild/bazel/releases/download/0.23.2/bazel-0.23.2-windows-x86_64.exe
+      mv bazel-*.exe bazel.exe
+      mkdir /c/bazel
+      mv bazel.exe /c/bazel
+      /c/bazel/bazel.exe info release
+
+    displayName: 'Install Bazel'
+
+  - powershell: |
+        Write-Host "Enable long path behavior"
+        # See https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file#maximum-path-length-limitation
+        Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1
+    displayName: "Enable da long paths"
+
+  - bash: |
+      set -e
+      export MSYS2_ARG_CONV_EXCL="*"
+      # Tests that build but don't run
+      /c/bazel/bazel.exe build --config windows "//tests/c-compiles-still/..."
+      /c/bazel/bazel.exe build --config windows "//tests/binary-with-data/..."
+      /c/bazel/bazel.exe build --config windows "//tests/binary-indirect-cbits"
+
+      # Tests that only require building
+      # (when using 'test' CI fails with:
+      #     ERROR: No test targets were found, yet testing was requested
+      # )
+      # See https://github.com/bazelbuild/bazel/issues/7291
+      /c/bazel/bazel.exe build --config windows "//tests/data/..."
+      /c/bazel/bazel.exe build --config windows "//tests/failures/..."
+      /c/bazel/bazel.exe build --config windows "//tests/hidden-modules/..."
+      /c/bazel/bazel.exe build --config windows "//tests/package-id-clash/..."
+
+      # Tests that succeed
+      /c/bazel/bazel.exe test --config windows "//tests:test-binary-simple"
+      /c/bazel/bazel.exe test --config windows "//tests:test-binary-custom-main"
+      /c/bazel/bazel.exe test --config windows "//tests/binary-custom-main/..."
+      /c/bazel/bazel.exe test --config windows "//tests/binary-exe-path/..."
+      /c/bazel/bazel.exe test --config windows "//tests/binary-with-data/..."
+      /c/bazel/bazel.exe test --config windows "//tests/binary-with-lib/..."
+      /c/bazel/bazel.exe test --config windows "//tests/binary-with-main/..."
+      /c/bazel/bazel.exe test --config windows "//tests/binary-simple/..."
+      /c/bazel/bazel.exe test --config windows "//tests/binary-with-compiler-flags/..."
+      /c/bazel/bazel.exe test --config windows "//tests/binary-with-import/..."
+      /c/bazel/bazel.exe test --config windows "//tests/binary-with-link-flags/..."
+      /c/bazel/bazel.exe test --config windows "//tests/cpp_macro_conflict/..."
+      /c/bazel/bazel.exe test --config windows "//tests/extra-source-files/..."
+      /c/bazel/bazel.exe test --config windows "//tests/java_classpath/..."
+      /c/bazel/bazel.exe test --config windows "//tests/generated-modules/..."
+      /c/bazel/bazel.exe test --config windows "//tests/haskell_lint/..."
+      /c/bazel/bazel.exe test --config windows "//tests/haskell_test/..."
+      /c/bazel/bazel.exe test --config windows "//tests/hs-boot/..."
+      /c/bazel/bazel.exe test --config windows "//tests/indirect-link/..."
+      /c/bazel/bazel.exe test --config windows "//tests/library-deps/..."
+      /c/bazel/bazel.exe test --config windows "//tests/library-exports/..."
+      /c/bazel/bazel.exe test --config windows "//tests/library-linkstatic-flag/..."
+      /c/bazel/bazel.exe test --config windows "//tests/lhs/..."
+      /c/bazel/bazel.exe test --config windows "//tests/package-id-clash-binary/..."
+      /c/bazel/bazel.exe test --config windows "//tests/package-name/..."
+      /c/bazel/bazel.exe test --config windows "//tests/textual-hdrs/..."
+      /c/bazel/bazel.exe test --config windows "//tests/two-libs/..."
+      /c/bazel/bazel.exe test --config windows "//tests/encoding/..."
+      /c/bazel/bazel.exe test --config windows "//tests/c-compiles/..."
+
+    displayName: 'Run Bazel'