aboutsummaryrefslogtreecommitdiff
path: root/.circleci/config.yml
blob: 54b5d9ed3001ad0ca75c765d04f25587b11d437d (plain) (blame)
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
78
79
version: 2.1

jobs:
  build-centos7:
    docker:
      - image: centos:7

    environment:
      MALLOC_CHECK_: 1

    working_directory: ~/build

    steps:
      - run:
          name: "Prepare"
          command: |
            yum install -y epel-release
            yum install -y git

      - checkout

      - run:
          name: "Initialize"
          command: |
            .circleci/init.sh

      - run:
          name: "Install reloc"
          command: |
            .circleci/install_reloc.sh

      - run:
          name: "Install spm"
          command: |
            .circleci/install_spm.sh

      - run:
          name: "Run tests"
          command: |
            .circleci/test_spm.sh

  build-macos:
    macos:
      xcode: 11.4.0

    environment:
      HOMEBREW_NO_AUTO_UPDATE: 1
      DYLD_INSERT_LIBRARIES: /usr/lib/libgmalloc.dylib

    steps:
      - checkout

      - run:
          name: "Initialize"
          command: |
            .circleci/init.sh

      - run:
          name: "Install reloc"
          command: |
            .circleci/install_reloc.sh

      - run:
          name: "Install spm"
          command: |
            .circleci/install_spm.sh

      - run:
          name: "Run tests"
          command: |
            .circleci/test_spm.sh

workflows:
  version: 2
  build-and-test:
    jobs:
      - build-centos7
      - build-macos