File: azure-pipelines.yml

package info (click to toggle)
libecpint 1.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 16,896 kB
  • sloc: xml: 31,587; cpp: 8,074; ansic: 922; python: 145; sh: 30; makefile: 15
file content (77 lines) | stat: -rw-r--r-- 1,972 bytes parent folder | download
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
69
70
71
72
73
74
75
76
77
trigger:
- master

jobs:
# Configure, build, install, and test job
- job: 'linux_build'
  displayName: 'Linux Builds'
  pool:
    vmImage: 'ubuntu-20.04'
  timeoutInMinutes: 10
  variables:
    CTEST_OUTPUT_ON_FAILURE: 1
  strategy:
    matrix:
      gcc_latest:
        CXX_COMPILER: 'g++'
        CXX_FLAGS: "-O3 -fprofile-arcs -ftest-coverage"
        C_COMPILER: 'gcc'
        F_COMPILER: 'gfortran'
        BUILD_TYPE: 'release'
        APT_INSTALL: 'gfortran'

      clang_latest:
        CXX_COMPILER: 'clang++'
        CXX_FLAGS: "-O3 -std=c++14"
        C_COMPILER: 'clang'
        F_COMPILER: 'gfortran'
        BUILD_TYPE: 'release'
        APT_INSTALL: 'gfortran clang-10'

  steps:
  - checkout: self
    submodules: true
    displayName: "Checkout repos"
  - bash: |
      [[ "${APT_REPOSITORY}" ]] && echo "Add Repo ${APT_REPOSITORY}" && sudo add-apt-repository "${APT_REPOSITORY}"
      sudo apt-get update
      sudo apt-get install ${APT_INSTALL}
    displayName: "Apt-Get Packages"
  - bash: |
      echo "" && echo "Ubuntu"
      lsb_release -a
      echo "" && echo "Uname:"
      uname -a
      echo "" && echo "Free:"
      free -m
      echo "" && echo "df:"
      df -h
      echo "" && echo "Ulimit:"
      ulimit -a
      echo "" && echo "Nprocs:"
      getconf _NPROCESSORS_ONLN
      echo "CXX Ver:"
      ${CXX_COMPILER} --version
      echo "F Ver:"
      ${F_COMPILER} --version
      echo "C Ver:"
      ${C_COMPILER} --version
    displayName: 'Build Environment'
  - bash: |
      cmake -Bbuild -H. \
        -DCMAKE_INSTALL_PREFIX=$(Agent.BuildDirectory)/Install \
        -DCMAKE_CXX_FLAGS="${CXX_FLAGS}" \
        -DLIBECPINT_MAX_UNROL=1 \
        -DLIBECPINT_MAX_L=4
    displayName: 'Configure Build'
  - bash: |
      cd build
      make all
    displayName: 'Build'
  - bash: |
      cd build
      make test
    displayName: 'Tests'
  - bash:
      bash <(curl -s https://codecov.io/bash)
    displayName: 'Upload to codecov.io'