wrench-windows-tests.sh (1130B)
1 #!/bin/bash 2 set -x -e -v 3 4 # This script runs the windows CI scripts for standalone WebRender. The CI 5 # scripts build WebRender in various "standalone" (without Gecko) 6 # configurations and also run WebRender's reftest suite using the `wrench` 7 # tool in the WebRender repository. 8 # The builds involved require a number of dependencies to be available, 9 # which is all handled below. 10 11 cd $GECKO_PATH 12 13 export PATH=$PATH:$(cd $MOZ_FETCHES_DIR && pwd)/rustc/bin 14 15 . taskcluster/scripts/misc/vs-setup.sh 16 17 # Bindgen (via mozangle) needs to be able to find libclang to compile 18 export LIBCLANG_PATH="$MOZ_FETCHES_DIR/clang/bin" 19 20 # Move the wrench-deps vendored crates into place 21 mv ${MOZ_FETCHES_DIR}/wrench-deps/{vendor,.cargo} gfx/wr 22 cd gfx/wr 23 24 # This is needed for the WebRender standalone reftests 25 powershell.exe 'iex (Get-Content -Raw ci-scripts\set-screenresolution.ps1); Set-ScreenResolution 1920 1080' 26 27 # Run the CI scripts 28 export CARGOFLAGS='--verbose --frozen' 29 # MSYS interprets `/c` as `C:`, so we must escape it with a double slash 30 cmd.exe //c 'ci-scripts\windows-tests.cmd' 31 32 . $GECKO_PATH/taskcluster/scripts/misc/vs-cleanup.sh