Codebase list libevdevplus / d962e43d-ec11-4efd-bce0-df405a8ae724/main .gitlab-ci.yml
d962e43d-ec11-4efd-bce0-df405a8ae724/main

Tree @d962e43d-ec11-4efd-bce0-df405a8ae724/main (Download .tar.gz)

.gitlab-ci.yml @d962e43d-ec11-4efd-bce0-df405a8ae724/mainraw · history · blame

before_script:
  - apt update
  - apt install -y build-essential cmake git rpm

build:debian:9:
  stage: build
  image: debian:9
  artifacts:
    untracked: true
  script:
    - mkdir build
    - cd build
    - cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS='-O1 -g' ..
    - make

package:debian:9:
  stage: deploy
  dependencies:
    - build:debian:9
  script:
    - cd build && make package
  artifacts:
    paths:
      - "build/*.deb"
      - "build/*.a"
      - "build/*.so.*.*.*"

build:ubuntu:18.04:
  stage: build
  image: ubuntu:18.04
  artifacts:
    untracked: true
  script:
    - mkdir build
    - cd build
    - cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS='-O1 -g' ..
    - make

package:ubuntu:18.04:
  stage: deploy
  dependencies:
    - build:ubuntu:18.04
  script:
    - cd build && make package
  artifacts:
    paths:
      - "build/*.deb"
      - "build/*.a"
      - "build/*.so.*.*.*"

build:ubuntu:19.04:
  stage: build
  image: ubuntu:19.04
  artifacts:
    untracked: true
  script:
    - mkdir build
    - cd build
    - cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS='-O1 -g' ..
    - make

package:ubuntu:19.04:
  stage: deploy
  dependencies:
    - build:ubuntu:19.04
  script:
    - cd build && make package
  artifacts:
    paths:
      - "build/*.deb"
      - "build/*.a"
      - "build/*.so.*.*.*"