Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghc-wasm-meta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
haskell-wasm
ghc-wasm-meta
Commits
db0a7d61
Commit
db0a7d61
authored
1 month ago
by
Cheng Shao
Browse files
Options
Downloads
Patches
Plain Diff
ci: probe more flavours of firefox/chrome
parent
2ba99b1f
No related branches found
No related tags found
1 merge request
!98
Fix missing --with-haddock=wasm32-wasi-haddock
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/ghci.sh
+2
-2
2 additions, 2 deletions
tests/ghci.sh
with
2 additions
and
2 deletions
tests/ghci.sh
+
2
−
2
View file @
db0a7d61
...
...
@@ -6,13 +6,13 @@ GHCI_SCRIPT='foreign import javascript "new Promise(res => setTimeout(res, 1024,
echo
-e
"
$GHCI_SCRIPT
"
| wasm32-wasi-ghc
--interactive
-package
ghc
-package
Cabal
FIREFOX_PATH
=
$(
type
-P
firefox
||
echo
""
)
FIREFOX_PATH
=
$(
type
-P
firefox
-esr
||
type
-P
firefox
||
type
-P
firefox-beta
||
type
-P
firefox-devedition
||
type
-P
firefox-nightly
||
echo
""
)
if
[[
$FIREFOX_PATH
!=
""
]]
;
then
echo
-e
"
$GHCI_SCRIPT
"
| wasm32-wasi-ghc
--interactive
-fghci-browser
-fghci-browser-puppeteer-launch-opts
=
"{
\"
browser
\"
:
\"
firefox
\"
,
\"
executablePath
\"
:
\"
$FIREFOX_PATH
\"
}"
fi
CHROME_PATH
=
$(
type
-P
google-chrome-stable
||
type
-P
chromium
||
type
-P
chromium-browser
||
echo
""
)
CHROME_PATH
=
$(
type
-P
google-chrome-stable
||
type
-P
google-chrome-beta
||
type
-P
google-chrome-unstable
||
type
-P
google-chrome-canary
||
type
-P
chromium
||
type
-P
chromium-browser
||
echo
""
)
if
[[
$CHROME_PATH
!=
""
]]
;
then
echo
-e
"
$GHCI_SCRIPT
"
| wasm32-wasi-ghc
--interactive
-fghci-browser
-fghci-browser-puppeteer-launch-opts
=
"{
\"
browser
\"
:
\"
chrome
\"
,
\"
protocol
\"
:
\"
webDriverBiDi
\"
,
\"
executablePath
\"
:
\"
$CHROME_PATH
\"
,
\"
args
\"
:[
\"
--no-sandbox
\"
]}"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment