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
|
# This file is a template, and might need editing before it works on your project.
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
# you can delete this line if you're not using Docker
image: debian:latest
before_script:
- echo "Before script section"
- echo "For example you might run an update here or install a build dependency"
- echo "Or perhaps you might print out some debugging details"
after_script:
- echo "After script section"
build-distribution:
stage: build
script:
- echo "Building..."
- apt-get update
- apt-get install --yes librsvg2-bin make x11-apps bc git python python-docutils rpm
- mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS,RPMS/noarch}
- export RPMDIR=/root/rpmbuild
- ./build-distribution
- cp ./deployment/index.html ./dist
artifacts:
paths:
- dist
#test1:
# stage: test
# script:
# - echo "Testing..."
# - echo "For example run a test suite"
pages:
stage: deploy
script:
- echo "Deploying to public pages..."
- mkdir -p ./public
- rm -rf ./public/ComixCursors-*
- cp ./dist/* ./public/
artifacts:
paths:
- public
only:
- master
|