mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
ci: install perl provider
This commit is contained in:
parent
f245c0218a
commit
40cc5822b1
@ -71,6 +71,7 @@ addons:
|
||||
- build-essential
|
||||
- clang
|
||||
- cmake
|
||||
- cpanminus
|
||||
- cscope
|
||||
- gcc-multilib
|
||||
- gdb
|
||||
@ -90,7 +91,9 @@ addons:
|
||||
- powershell
|
||||
packages:
|
||||
- ccache
|
||||
- cpanminus
|
||||
- ninja
|
||||
- perl
|
||||
|
||||
jobs:
|
||||
include:
|
||||
|
@ -22,9 +22,6 @@ init:
|
||||
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
||||
matrix:
|
||||
fast_finish: true
|
||||
install: []
|
||||
before_build:
|
||||
- ps: Install-Product node 10
|
||||
build_script:
|
||||
- powershell ci\build.ps1
|
||||
after_build:
|
||||
|
@ -44,7 +44,6 @@ fi
|
||||
|
||||
source ~/.nvm/nvm.sh
|
||||
nvm install 10
|
||||
nvm use 10
|
||||
|
||||
if [[ -n "$CMAKE_URL" ]]; then
|
||||
echo "Installing custom CMake: $CMAKE_URL"
|
||||
|
22
ci/build.ps1
22
ci/build.ps1
@ -29,6 +29,25 @@ function exitIfFailed() {
|
||||
}
|
||||
}
|
||||
|
||||
# https://github.com/lukesampson/scoop#installation
|
||||
$scoop = (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
|
||||
& {
|
||||
Set-StrictMode -Off
|
||||
Invoke-Expression $scoop
|
||||
}
|
||||
|
||||
scoop install nodejs-lts perl
|
||||
node --version
|
||||
npm.cmd --version
|
||||
perl --version
|
||||
cpanm.bat --version
|
||||
|
||||
cpanm.bat -n Neovim::Ext
|
||||
if ($LastExitCode -ne 0) {
|
||||
Get-Content -Path "$env:USERPROFILE\.cpanm\build.log"
|
||||
}
|
||||
perl -W -e 'use Neovim::Ext; print $Neovim::Ext::VERSION'; exitIfFailed
|
||||
|
||||
if (-Not (Test-Path -PathType container $env:DEPS_BUILD_DIR)) {
|
||||
write-host "cache dir not found: $($env:DEPS_BUILD_DIR)"
|
||||
mkdir $env:DEPS_BUILD_DIR
|
||||
@ -57,7 +76,7 @@ if ($compiler -eq 'MINGW') {
|
||||
# in MSYS2, but we cannot build inside the MSYS2 shell.
|
||||
$cmakeGenerator = 'Ninja'
|
||||
$cmakeGeneratorArgs = '-v'
|
||||
$mingwPackages = @('ninja', 'cmake', 'perl', 'diffutils').ForEach({
|
||||
$mingwPackages = @('ninja', 'cmake', 'diffutils').ForEach({
|
||||
"mingw-w64-$arch-$_"
|
||||
})
|
||||
|
||||
@ -115,7 +134,6 @@ if (-not $NoTests) {
|
||||
if (-Not (Test-Path -PathType Leaf "$env:TREE_SITTER_DIR\bin\c.dll")) {
|
||||
exit 1
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ($compiler -eq 'MSVC') {
|
||||
|
@ -50,3 +50,6 @@ else
|
||||
gcc -m32 -o "$TREE_SITTER_DIR/bin/c.so" -shared parser.c -I.
|
||||
fi
|
||||
test -f "$TREE_SITTER_DIR/bin/c.so"
|
||||
|
||||
sudo cpanm -n Neovim::Ext || cat "$HOME/.cpanm/build.log"
|
||||
perl -W -e 'use Neovim::Ext; print $Neovim::Ext::VERSION'
|
||||
|
Loading…
Reference in New Issue
Block a user