only:
- master
-.build_template: &build_definition
+.build_template: &rpm_build_definition
stage: build
script:
- rm -rf /home/gitlab-runner/rpmbuild
only:
- master
+.build_template: &deb_build_definition
+ stage: build
+ script:
+ - VERSION=$( cat VERSION )
+ - zcat graphviz-@VERSION@.tar.gz | tar xf -
+ - (cd graphviz-@VERSION@; fakeroot make -f debian/rules binary)
+ - ln -s graphviz-@VERSION@ packages
+ artifacts:
+ when: on_success
+ expire_in: 1 week
+ paths:
+ - packages/*.deb
+ - packages/*.ddeb
+ only:
+ - master
+
centos6-build:
- <<: *build_definition
+ <<: *rpm_build_definition
tags:
- graphviz,centos6
centos7-build:
- <<: *build_definition
+ <<: *rpm_build_definition
tags:
- graphviz,centos7
fedora27-build:
- <<: *build_definition
+ <<: *rpm_build_definition
tags:
- graphviz,fedora27
fedora28-build:
- <<: *build_definition
+ <<: *rpm_build_definition
tags:
- graphviz,fedora28
fedora29-build:
- <<: *build_definition
+ <<: *rpm_build_definition
tags:
- graphviz,fedora29
fedora30-build:
- <<: *build_definition
+ <<: *rpm_build_definition
tags:
- graphviz,fedora30
+
+ubuntu18-04-build:
+ <<: *deb_build_definition
+ tags:
+ - graphviz,ubuntu18-04
+
+ubuntu18-10-build:
+ <<: *deb_build_definition
+ tags:
+ - graphviz,ubuntu18-10
rm -rf $(OCAML_PACKAGE)/usr/lib/graphviz
# Some additional work for libgv-python
- # Note the sed call because of python{24,25} instead of python{2.4,2.5}
# Note gv.py isn't really duplicated, it's just installed in a location
# where python-support will find it. Both being identical, python-support
# will just do the right thing.
for i in $(PYTHON_VERSIONS); do \
install -d $(PYTHON_PACKAGE)/usr/lib/$$i/site-packages ; \
- cp $(PYTHON_PACKAGE)/usr/lib/graphviz/python/gv.py \
+ cp $(PYTHON_PACKAGE)/usr/lib/graphviz/python*/gv.py \
$(PYTHON_PACKAGE)/usr/lib/$$i/site-packages ; \
- mv $(PYTHON_PACKAGE)/usr/lib/graphviz/$$(echo $$i|sed -e 's/\.//')/*.so \
+ mv $(PYTHON_PACKAGE)/usr/lib/graphviz/python*/*.so \
$(PYTHON_PACKAGE)/usr/lib/$$i/site-packages ; \
done
rm -rf $(PYTHON_PACKAGE)/usr/lib/graphviz