.gitlab-ci.yml 1.11 KB
Newer Older
1 2 3 4
# 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
jlue's avatar
jlue committed
5
image: registry.gitlab.com/limitland/comixcursors/xcursorgen
6

jlue's avatar
jlue committed
7 8 9 10
#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"
11

jlue's avatar
jlue committed
12 13
#after_script:
#  - echo "After script section"
14 15 16 17 18 19 20 21

build-distribution:
  stage: build
  script:
    - echo "Building..."
    - mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS,RPMS/noarch}
    - export RPMDIR=/root/rpmbuild
    - ./build-distribution
jlue's avatar
jlue committed
22
    - cp ./deployment/index.html ./dist
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
  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