.gitlab-ci.yml 4.03 KB
Newer Older
1
2
3
job_gcc_amd64:
  script:
    - ./autogen.sh
4
    - ./configure CXX="ccache g++" PYTHON=python3 --prefix=$PWD/install --with-python-module-path=$PWD/install/site-packages CXXFLAGS="-O3 -flto=auto" LDFLAGS="-flto=auto"
5
    - CCACHE_BASEDIR=$PWD make $MAKEOPTS
6
7
    - make install
    - export PYTHONPATH=$PWD/install/site-packages
8
    - cd doc; (mkdir builds envs; pids=(); for f in `ls *rst`; do python3 /usr/bin/sphinx-build -E -d envs/$f -b doctest . builds/$f $f & pids+=($!); done; for p in "${pids[@]}"; do wait "$p"; done);
9
10
  tags:
    - amd64
11
12
  except:
    - tags
13
14
15
16

job_clang_amd64:
  script:
    - ./autogen.sh
Tiago Peixoto's avatar
Tiago Peixoto committed
17
    - ./configure CXX="ccache clang++" PYTHON=python3 --prefix=$PWD/install --with-python-module-path=$PWD/install/site-packages CXXFLAGS="-O3" LDFLAGS=""
18
    - CCACHE_BASEDIR=$PWD make $MAKEOPTS
19
20
    - make install
    - export PYTHONPATH=$PWD/install/site-packages
21
    - cd doc; (mkdir builds envs; pids=(); for f in `ls *rst`; do python3 /usr/bin/sphinx-build -E -d envs/$f -b doctest . builds/$f $f & pids+=($!); done; for p in "${pids[@]}"; do wait "$p"; done);
22
23
  tags:
    - amd64
24
25
  except:
    - tags
26

27
28
29
job_clang_cxx_amd64:
  script:
    - ./autogen.sh
Tiago Peixoto's avatar
Tiago Peixoto committed
30
    - ./configure CXX="ccache clang++" PYTHON=python3 CXXFLAGS="-stdlib=libc++" LDFLAGS="-lc++abi"
31
32
33
34
35
36
    - CCACHE_BASEDIR=$PWD make $MAKEOPTS
  tags:
    - amd64
  except:
    - tags

Tiago Peixoto's avatar
Tiago Peixoto committed
37
38
39
40
41
42
build_tarball:
  script:
    - ./autogen.sh
    - ./configure
    - make dist-bzip2
    - make dist-xz
Tiago Peixoto's avatar
Tiago Peixoto committed
43
    - bunzip2 -k *bz2
Tiago Peixoto's avatar
Tiago Peixoto committed
44
45
46
47
48
49
50
51
52
    - zstd *.tar
  only:
    - tags
  artifacts:
    paths:
      - graph-tool*bz2
      - graph-tool*xz
      - graph-tool*zst

53
54
55
56
57
build_sid:
  script:
    - BASE=debian:sid
    - img=`echo $BASE | sed s/:/_/`
    - cd release/debian
Tiago Peixoto's avatar
Tiago Peixoto committed
58
    - docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img .
59
60
61
62
63
64
65
66
67
68
69
70
    - docker run -v $PWD:/mount $img tar -c build | tar x
  only:
    - tags
  artifacts:
    paths:
      - release/debian/build/*

build_bullseye:
  script:
    - BASE=debian:bullseye
    - img=`echo $BASE | sed s/:/_/`
    - cd release/debian
Tiago Peixoto's avatar
Tiago Peixoto committed
71
    - docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img .
72
73
74
75
76
77
78
79
80
81
82
83
    - docker run -v $PWD:/mount $img tar -c build | tar x
  only:
    - tags
  artifacts:
    paths:
      - release/debian/build/*

build_buster:
  script:
    - BASE=debian:buster
    - img=`echo $BASE | sed s/:/_/`
    - cd release/debian
Tiago Peixoto's avatar
Tiago Peixoto committed
84
    - docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img .
85
86
87
88
89
90
91
92
93
94
95
96
    - docker run -v $PWD:/mount $img tar -c build | tar x
  only:
    - tags
  artifacts:
    paths:
      - release/debian/build/*

build_bionic:
  script:
    - BASE=ubuntu:bionic
    - img=`echo $BASE | sed s/:/_/`
    - cd release/debian
Tiago Peixoto's avatar
Tiago Peixoto committed
97
    - docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img .
98
99
100
101
102
103
104
    - docker run -v $PWD:/mount $img tar -c build | tar x
  only:
    - tags
  artifacts:
    paths:
      - release/debian/build/*

105
106
107
108
109
build_eoan:
  script:
    - BASE=ubuntu:eoan
    - img=`echo $BASE | sed s/:/_/`
    - cd release/debian
Tiago Peixoto's avatar
Tiago Peixoto committed
110
    - docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img .
111
112
113
114
115
116
    - docker run -v $PWD:/mount $img tar -c build | tar x
  only:
    - tags
  artifacts:
    paths:
      - release/debian/build/*
Tiago Peixoto's avatar
Tiago Peixoto committed
117

Tiago Peixoto's avatar
Tiago Peixoto committed
118
119
120
121
122
123
124
125
126
127
128
129
130
build_focal:
  script:
    - BASE=ubuntu:focal
    - img=`echo $BASE | sed s/:/_/`
    - cd release/debian
    - docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img .
    - docker run -v $PWD:/mount $img tar -c build | tar x
  only:
    - tags
  artifacts:
    paths:
      - release/debian/build/*

Tiago Peixoto's avatar
Tiago Peixoto committed
131
132
133
134
135
136
137
138
139
140
141
142
143
build_groovy:
  script:
    - BASE=ubuntu:groovy
    - img=`echo $BASE | sed s/:/_/`
    - cd release/debian
    - docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img .
    - docker run -v $PWD:/mount $img tar -c build | tar x
  only:
    - tags
  artifacts:
    paths:
      - release/debian/build/*

Tiago Peixoto's avatar
Tiago Peixoto committed
144
145
146
build_docker:
  script:
    - cd release/docker
147
    - docker build --build-arg REF=`git log -n1 --pretty='%H'` -t tiagopeixoto/graph-tool .
Tiago Peixoto's avatar
Tiago Peixoto committed
148
149
  only:
    - tags