summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 2bc0d0da62da6dd8e077c0a099a12d94205bddfc (plain)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
dist: xenial
language: cpp
os: linux

jobs:
  include:
  - compiler: clang
    env:
    - CONF_OPTIONS="--enable-cplusplus"
    - WORKAROUND_ACLOCAL_MISSING=true
  - compiler: gcc
    env:
    - CONF_OPTIONS="--enable-cplusplus"
    - WORKAROUND_ACLOCAL_MISSING=true
  - os: osx
    env:
    - CONF_OPTIONS="--enable-cplusplus"
  - env:
    - MAKEFILE_TARGETS="dist"
    - WORKAROUND_ACLOCAL_MISSING=true
  - addons:
      apt:
        packages:
        - libatomic-ops-dev
    compiler: clang
    env:
    - CONF_OPTIONS="--enable-cplusplus"
    - NO_CLONE_LIBATOMIC_OPS=true
  - addons:
      apt:
        packages:
        - libatomic-ops-dev
    compiler: gcc
    env:
    - CONF_OPTIONS="--enable-gc-assertions --enable-cplusplus"
    - NO_CLONE_LIBATOMIC_OPS=true
  - compiler: clang
    env:
    - CONF_OPTIONS="--enable-gc-assertions"
    - WORKAROUND_ACLOCAL_MISSING=true
  - compiler: gcc
    env:
    - CONF_OPTIONS="--enable-gc-assertions"
    - WORKAROUND_ACLOCAL_MISSING=true
  - os: osx
    env:
    - CONF_OPTIONS="--enable-gc-assertions --enable-handle-fork --enable-cplusplus"
  - compiler: gcc
    env:
    - CONF_OPTIONS="--enable-gc-debug --enable-cplusplus"
    - WORKAROUND_ACLOCAL_MISSING=true
  - os: osx
    env:
    - CONF_OPTIONS="--enable-munmap --enable-cplusplus"
  - compiler: gcc
    env:
    - CONF_OPTIONS="--enable-handle-fork --enable-munmap --enable-cplusplus --disable-shared --enable-gc-assertions"
    - WORKAROUND_ACLOCAL_MISSING=true
  - compiler: gcc
    env:
    - CONF_OPTIONS="--disable-gc-debug --enable-cplusplus"
    - WORKAROUND_ACLOCAL_MISSING=true
  - compiler: clang
    env:
    - CONF_OPTIONS="--enable-large-config --enable-cplusplus"
    - WORKAROUND_ACLOCAL_MISSING=true
  - os: osx
    env:
    - CONF_OPTIONS="--enable-large-config --enable-cplusplus"
  - compiler: gcc
    env:
    - CONF_OPTIONS="--enable-large-config --disable-munmap"
    - WORKAROUND_ACLOCAL_MISSING=true
  - compiler: gcc
    env:
    - CONF_OPTIONS="--enable-large-config --enable-munmap --enable-cplusplus --enable-gc-assertions --enable-static"
    - WORKAROUND_ACLOCAL_MISSING=true
  - compiler: clang
    env:
    - CONF_OPTIONS="--enable-redirect-malloc --disable-threads"
    - WORKAROUND_ACLOCAL_MISSING=true
  - os: osx
    env:
    - CONF_OPTIONS="--enable-redirect-malloc --enable-cplusplus --disable-threads"
  - compiler: gcc
    env:
    - CONF_OPTIONS="--enable-redirect-malloc --enable-gc-debug --enable-cplusplus --enable-gc-assertions"
    - WORKAROUND_ACLOCAL_MISSING=true
  - compiler: clang
    env:
    - CONF_OPTIONS="--disable-static --disable-threads --enable-cplusplus"
    - WORKAROUND_ACLOCAL_MISSING=true
  - compiler: gcc
    env:
    - CONF_OPTIONS="--disable-static --disable-threads --enable-cplusplus"
    - WORKAROUND_ACLOCAL_MISSING=true
  - os: osx
    env:
    - CONF_OPTIONS="--disable-static --disable-threads --enable-cplusplus"
  - addons:
      apt:
        packages:
        - libatomic-ops-dev
    env:
    - MAKEFILE_TARGETS="distcheck"
    - GC_REAL_VERSION=7.2n
    - AO_SRC_VER=v7.2i

before_install:
- if [[ "$MAKEFILE_TARGETS" == *"dist"* ]]; then
    autoconf --version;
    automake --version;
    m4 --version;
    libtool --version || true;
    pkg-config --version;
  fi
- if [[ "$MAKEFILE_TARGETS" == "" ]]; then MAKEFILE_TARGETS="check"; fi

install:
- if [[ "$NO_CLONE_LIBATOMIC_OPS" != true ]]; then
    if [[ "$AO_SRC_VER" == "" ]]; then AO_SRC_VER="release-7_2"; fi;
    git clone --depth=50 https://github.com/ivmai/libatomic_ops.git
              -b $AO_SRC_VER;
  fi
- if [[ "$WORKAROUND_ACLOCAL_MISSING" == true ]]; then
    autoreconf --force --install;
  fi

script:
- ./configure $CONF_OPTIONS
- make -j $MAKEFILE_TARGETS
- if [[ "$GC_REAL_VERSION" != "" ]]; then
    tar xf gc-*.tar.gz;
    rm gc-*.tar.*;
    (cd gc-*; ln -s ../libatomic_ops);
    tar cf gc-$GC_REAL_VERSION.tar --dereference
        --exclude=".*" --exclude="*.yml" gc-*/;
    gzip --best --verbose gc-*.tar;
  fi

deploy:
  provider: releases
  edge: true
  file: gc-*.tar.gz
  file_glob: true
  on:
    condition: $MAKEFILE_TARGETS = distcheck
    repo: ivmai/bdwgc
    tags: true