File: azure-pipelines.yml

package info (click to toggle)
ocaml-mmap 1.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 172 kB
  • sloc: ml: 219; makefile: 14
file content (68 lines) | stat: -rw-r--r-- 1,853 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
jobs:
- job: Linux
  pool:
    vmImage: 'ubuntu-16.04'
  steps:
  - script: env AGENT_OS=Linux TEST_DISTRIB=yes ./.azure-pipelines.sh
    displayName: Build
  - task: PublishPipelineArtifact@0
    inputs:
      artifactName: 'docs'
      targetPath: '_build/default/_doc/_html/'
  - task: PublishPipelineArtifact@0
    inputs:
      artifactName: 'binaries'
      targetPath: '_build/install/default/'
- job: LinuxDistros
  pool:
    vmImage: 'ubuntu-16.04'
  strategy:
    matrix:
      alpine:
        DISTRO: 'alpine'
      debian-stable:
        DISTRO: 'debian-stable'
      ubuntu-lts:
        DISTRO: 'ubuntu-lts'
      opensuse:
        DISTRO: 'opensuse'
      fedora:
        DISTRO: 'fedora'
  steps:
  - script: docker run -e AGENT_OS=LinuxDocker -e DISTRO=${DISTRO} -v `pwd`:/home/opam/src ocaml/opam2:${DISTRO} /home/opam/src/.azure-pipelines.sh
    displayName: Build
- job: macOS
  pool:
    vmImage: 'macOS-10.13'
  steps:
  - script: ./.azure-pipelines.sh
    displayName: Build
- job: Windows
  variables:
    CYGWIN_ROOT: $(System.Workfolder)\cygwin
    CYGWIN_MIRROR: http://cygwin.mirror.constant.com
  pool:
    vmImage: 'vs2017-win2016'
  steps:
    - script: |
        choco install cygwin --params="/InstallDir:%CYGWIN_ROOT%"
      displayName: Install Cygwin
    - script: |
        %CYGWIN_ROOT%\cygwinsetup.exe -qnNdO -R "%CYGWIN_ROOT%" -s "%CYGWIN_MIRROR%" -g -P ^
        curl,^
        diff,^
        diffutils,^
        git,^
        m4,^
        make,^
        patch,^
        perl,^
        rsync,^
        mingw64-x86_64-gcc-core,^
        unzip
      displayName: Install Dependencies
    - script: |
        set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32
        set BUILD_SOURCES_DIR=$(Build.SourcesDirectory)
        env.exe -- bash.exe -l $(Build.SourcesDirectory)/.azure-pipelines.sh
      displayName: Build