sbcl.sbcl/azure-pipelines.yml
2019-10-26 21:46:50 +03:00

101 lines
2.3 KiB
YAML

variables:
SBCL_MAKE_TARGET_2_OPTIONS: --disable-ldb --disable-debugger
make.sh: ./make.sh --xc-host='sbcl --lose-on-corruption --disable-ldb --disable-debugger'
trigger:
- master
jobs:
- job: Linux
strategy:
matrix:
threads:
options: "--with-sb-thread"
no-threads:
options: "--without-sb-thread"
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
sudo apt-get -qq -y install sbcl libcapstone-dev
displayName: 'install host sbcl'
- script: |
$(make.sh) $(options)
displayName: 'make'
- script: |
cd tests; ./run-tests.sh
displayName: 'tests'
- script: |
cd tests; ./ansi-tests.sh
displayName: 'ansi-tests'
- job: macOS
pool:
vmImage: 'macOS-latest'
steps:
- script: |
brew install sbcl
displayName: 'install host sbcl'
- script: |
$(make.sh)
displayName: 'make'
- script: |
cd tests; ./run-tests.sh
displayName: 'tests'
- script: |
cd tests; ./ansi-tests.sh
displayName: 'ansi-tests'
- job: Windows
variables:
CC: x86_64-w64-mingw32-gcc
pool:
vmImage: 'windows-latest'
steps:
- script: |
choco install --no-progress msys2 --params "/NoUpdate"
ECHO ##vso[task.prependpath]C:\tools\msys64\usr\bin:/c/Program Files/Steel Bank Common Lisp/1.4.14
displayName: 'install host msys2'
- script: |
C:\tools\msys64\usr\bin\bash -c 'pacman -S --noconfirm --needed mingw-w64-x86_64-gcc make diffutils'
displayName: 'install gcc'
- script: |
cinst sbcl -source tools-for-build
displayName: 'install host sbcl'
- script: |
C:\tools\msys64\usr\bin\bash -c "$(make.sh)"
displayName: 'make'
env:
SBCL_HOME: "/c/Program Files/Steel Bank Common Lisp/1.4.14"
- script: |
C:\tools\msys64\usr\bin\bash -c "sh ./make-windows-installer.sh"
displayName: 'make-installer'
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/output'
contents: '*.msi'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- publish: $(Build.ArtifactStagingDirectory)
artifact: win32.msi
- script: |
C:\tools\msys64\usr\bin\bash -c "cd tests; ./run-tests.sh"
displayName: 'tests'
- script: |
C:\tools\msys64\usr\bin\bash -c "cd tests; ./ansi-tests.sh"
displayName: 'ansi-tests'