Skip to content

Commit cf54145

Browse files
committed
Revert "maybe more progress"
This reverts commit b1edca3.
1 parent 56ab2c5 commit cf54145

File tree

2 files changed

+18
-32
lines changed

2 files changed

+18
-32
lines changed

.semaphore/semaphore.yml

+3-14
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,10 @@ global_job_config:
2525
- checkout
2626
- make ci-bin-sem-cache-restore
2727
- |
28-
if [ "$(uname -s)" = "Linux" ] || [ "$(uname -s)" = "Darwin" ]; then
29-
if [[ "${SEMAPHORE_ORGANIZATION_URL}" == *".semaphoreci.com" ]]; then
30-
echo "Skipping Vault setup for Semaphore CI"
31-
else
32-
. vault-setup
33-
fi
34-
elif [ "$(uname -s)" = "MINGW64_NT-10.0" ]; then
35-
if ($env:SEMAPHORE_ORGANIZATION_URL -like "*.semaphoreci.com") {
36-
Write-Output "Skipping Vault setup for Semaphore CI"
37-
} else {
38-
.\vault-setup.ps1
39-
}
28+
if [[ "${SEMAPHORE_ORGANIZATION_URL}" == *".semaphoreci.com" ]]; then
29+
echo "Skipping Vault setup for Semaphore CI"
4030
else
41-
echo "Unsupported OS"
42-
exit 1
31+
. vault-setup
4332
fi
4433
epilogue:
4534
always:

Makefile

+15-18
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,6 @@ install-dependencies:
99
npm ci --prefer-offline --include=dev
1010
npx playwright install
1111

12-
# Install additional test dependencies to run VSCode testing in headless mode (on Linux)
13-
# ref: https://code.visualstudio.com/api/working-with-extensions/continuous-integration#github-actions
14-
.PHONY: install-test-dependencies
15-
install-test-dependencies:
16-
@echo "Installing test dependencies for $(shell uname -s)"
17-
@if [ $$(uname -s) = "Linux" ]; then \
18-
sudo apt-get update; \
19-
sudo apt install -y libgbm1 libgtk-3-0 xvfb; \
20-
elif [ $$(uname -s) = "Darwin" ]; then \
21-
sudo brew update; \
22-
sudo brew install gtk+3; \
23-
sudo brew install --cask xquartz; \
24-
else \
25-
echo "Unsupported OS for headless testing"; \
26-
exit 1; \
27-
fi
28-
2912
.PHONY: setup-test-env
3013
setup-test-env:
3114
@echo "Pulling automated-test-user credentials from Vault into .env file for testing"
@@ -37,8 +20,22 @@ remove-test-env:
3720
@echo "Removing .env file"
3821
@rm -f .env
3922

23+
# Install additional test dependencies to run VSCode testing in headless mode (on Linux)
24+
# ref: https://code.visualstudio.com/api/working-with-extensions/continuous-integration#github-actions
4025
.PHONY: test
41-
test: setup-test-env install-test-dependencies install-dependencies
26+
test: setup-test-env install-dependencies
27+
@echo "Installing test dependencies for $(shell uname -s)"
28+
@if [ $$(uname -s) = "Linux" ]; then \
29+
sudo apt-get update; \
30+
sudo apt install -y libgbm1 libgtk-3-0 xvfb; \
31+
elif [ $$(uname -s) = "Darwin" ]; then \
32+
brew update; \
33+
brew install gtk+3; \
34+
brew install --cask xquartz; \
35+
else \
36+
echo "Unsupported OS for headless testing"; \
37+
exit 1; \
38+
fi
4239
npx gulp ci
4340
@if [ $$(uname -s) = "Linux" ]; then \
4441
xvfb-run -a npx gulp test; \

0 commit comments

Comments
 (0)