.gitlab-ci.yml 914 Bytes
Newer Older
1 2
image: coderus/sailfishos-platform-sdk:latest

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
build-release:
  only:
    - master@pleroma/harbour-kyclos
    - develop@pleroma/harbour-kyclos
  script:
  - sudo mkdir RPMS
  - cp -r . /home/nemo/harbour-kyclos
  - cd /home/nemo/harbour-kyclos
  - for target in $(sb2-config -l); do echo $target; mb2 -X -t $target build; sudo cp RPMS/*.rpm "$CI_PROJECT_DIR/RPMS/"; done
  artifacts:
    name: RPMS
    paths:
      - RPMS

build-devel:
Haelwenn's avatar
Haelwenn committed
18
  except:
19 20
    - master@pleroma/harbour-kyclos
    - develop@pleroma/harbour-kyclos
21
  script:
22 23
  - git config --global user.email ci@example.org
  - git config --global user.name "Gitlab CI"
24 25 26
  - sudo mkdir RPMS
  - cp -r . /home/nemo/harbour-kyclos
  - cd /home/nemo/harbour-kyclos
27
  - for target in $(sb2-config -l); do echo $target; mb2 -x -c -t $target build --enable-debug; sudo cp RPMS/*.rpm "$CI_PROJECT_DIR/RPMS/"; done
28 29 30 31
  artifacts:
    name: RPMS
    paths:
      - RPMS