.gitlab-ci.yml 3.22 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=12" LDFLAGS="-flto=12"
5
    - CCACHE_BASEDIR=$PWD make $MAKEOPTS
6 7
    - make install
    - export PYTHONPATH=$PWD/install/site-packages
8
    - cd doc; python3 /usr/bin/sphinx-build -b doctest . build *.rst
9 10
  tags:
    - amd64
11 12
  except:
    - tags
13 14 15 16

job_clang_amd64:
  script:
    - ./autogen.sh
17
    - ./configure CXX="ccache clang++" PYTHON=python3 --prefix=$PWD/install --with-python-module-path=$PWD/install/site-packages CXXFLAGS="-O3 -flto" LDFLAGS="-flto"
18
    - CCACHE_BASEDIR=$PWD make $MAKEOPTS
19 20
    - make install
    - export PYTHONPATH=$PWD/install/site-packages
21
    - cd doc; python3 /usr/bin/sphinx-build -b doctest . build *.rst
22 23
  tags:
    - amd64
24 25
  except:
    - tags
26

Tiago Peixoto's avatar
Tiago Peixoto committed
27 28 29 30 31 32
build_tarball:
  script:
    - ./autogen.sh
    - ./configure
    - make dist-bzip2
    - make dist-xz
Tiago Peixoto's avatar
Tiago Peixoto committed
33
    - bunzip2 -k *bz2
Tiago Peixoto's avatar
Tiago Peixoto committed
34 35 36 37 38 39 40 41 42
    - zstd *.tar
  only:
    - tags
  artifacts:
    paths:
      - graph-tool*bz2
      - graph-tool*xz
      - graph-tool*zst

43 44 45 46 47
build_sid:
  script:
    - BASE=debian:sid
    - img=`echo $BASE | sed s/:/_/`
    - cd release/debian
Tiago Peixoto's avatar
Tiago Peixoto committed
48
    - docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img .
49 50 51 52 53 54 55 56 57 58 59 60
    - 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
61
    - docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img .
62 63 64 65 66 67 68 69 70 71 72 73
    - 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
74
    - docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img .
75 76 77 78 79 80 81 82 83 84 85 86
    - 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
87
    - docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img .
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
    - docker run -v $PWD:/mount $img tar -c build | tar x
  only:
    - tags
  artifacts:
    paths:
      - release/debian/build/*

build_disco:
  script:
    - BASE=ubuntu:disco
    - 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/*

108 109 110 111 112
build_eoan:
  script:
    - BASE=ubuntu:eoan
    - img=`echo $BASE | sed s/:/_/`
    - cd release/debian
Tiago Peixoto's avatar
Tiago Peixoto committed
113
    - docker build --build-arg BASE=$BASE --build-arg REF=`git log -n1 --pretty='%H'` -t $img .
114 115 116 117 118 119
    - 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
120 121 122 123

build_docker:
  script:
    - cd release/docker
124
    - docker build --build-arg REF=`git log -n1 --pretty='%H'` -t tiagopeixoto/graph-tool .
Tiago Peixoto's avatar
Tiago Peixoto committed
125 126
  only:
    - tags