Skip to content
Snippets Groups Projects
.gitlab-ci.yml 657 B
Newer Older
  • Learn to ignore specific revisions
  • stages:
    
    Eric Vidal's avatar
    Eric Vidal committed
        - build
        - commit
    
    Eric Vidal's avatar
    Eric Vidal committed
        - deploy
    
    Eric Vidal's avatar
    Eric Vidal committed
    package:
    
      stage: build
      script:
    
    Eric Vidal's avatar
    Eric Vidal committed
        - mkdir -p /etc/pkg
        - cp ./pkg.cfg /etc/pkg/pkg.cfg
        - cp ./pacman.conf.builder /etc/pacman.conf.builder
        - pkg-prepare.sh
        - pkg-build.sh --chdir=trunk $CI_PROJECT_DIR
    
    Eric Vidal's avatar
    Eric Vidal committed
    
    
      artifacts:
        name: $CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA
        paths:
         - "*.pkg.tar.xz"
    
    Eric Vidal's avatar
    Eric Vidal committed
    
    
      only:
        changes:
          - trunk/PKGBUILD
    
    Eric Vidal's avatar
    Eric Vidal committed
    
    
    Eric Vidal's avatar
    Eric Vidal committed
    commit:
      stage: commit
    
      only:
        changes:
          - trunk/PKGBUILD
    
    Eric Vidal's avatar
    Eric Vidal committed
    
      script:
    
    Eric Vidal's avatar
    Eric Vidal committed
        - pkg-commit.sh
    
    Eric Vidal's avatar
    Eric Vidal committed
    
    deploy:
      stage: deploy
      dependencies:
        - package
      script:
        - pkg-deploy.sh
    
      only:
        changes:
          - trunk/PKGBUILD