Browse Source

Add feature test for Fish shell (#21)

remotes/origin/add-simple-redirecting-site
Gal Schlezinger 6 years ago committed by GitHub
parent
commit
1beef6a720
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      azure-pipelines.yml
  2. 10
      feature_tests/fish/run.fish
  3. 11
      feature_tests/fish/run.sh

2
azure-pipelines.yml

@ -17,6 +17,7 @@ jobs: @@ -17,6 +17,7 @@ jobs:
steps:
# TODO: Uncomment both this and 'publish-build-cache' below to enable build caching for Linux.
# - template: .ci/restore-build-cache.yml
- script: sudo apt-get install -y fish
- script: .ci/create-static-binary.sh
- script: ./feature_tests/run.sh $(pwd)/fnm-linux
# - script: bash .ci/prepare-static-build.sh
@ -40,6 +41,7 @@ jobs: @@ -40,6 +41,7 @@ jobs:
steps:
# TODO: Uncomment both this and 'publish-build-cache' below to enable build caching for Mac.
# - template: .ci/restore-build-cache.yml
- script: brew install fish
- template: .ci/esy-build-steps.yml
- script: cp _build/default/executable/FnmApp.exe _build/fnm
- script: ./feature_tests/run.sh $(pwd)/_build/fnm

10
feature_tests/fish/run.fish

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
#!/usr/bin/env fish
eval (fnm env --fish)
fnm install v8.11.3
fnm use v8.11.3
if test (node --version) != "v8.11.3"
echo "Node version is not v8.11.3!"
exit 1
end

11
feature_tests/fish/run.sh

@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
#!/bin/bash
set -e
DIRECTORY=`dirname $0`
if hash fish 2>/dev/null; then
fish $DIRECTORY/run.fish
else
echo "Skipping: \`fish\` is not installed"
fi
Loading…
Cancel
Save