.gitlab-ci.yml 853 Bytes
Newer Older
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
image: docker.io/labrobotica/labrobotica

stages:
  - build
  - test
  - deploy

build-package:
  stage: build
  script:
#  Uncomment to install dependencies
#    - apt update
#    - apt -y install iri-<package_name>-dev
    - apt update
    - apt -y install iri-iriutils-dev iri-comm-dev iri-usb-i2c-adapter-dev
    - mkdir -pv build
    - cd build
    - cmake -D CMAKE_BUILD_TYPE=RELEASE -DCPACK_PACKAGE_VERSION=$CI_COMMIT_TAG ..
    - make package -j $(nproc)
  artifacts:
    paths:
      - build/*.deb
    expire_in: 2 weeks
  only:
    - tags
    
update_repo:
  stage: deploy
  script:
    - cd build
31
32
    - "scp -i /root/.ssh/iriLabKeyNopwd -r *lidar-lite*.deb irilabo@labrepo.iri.upc.edu:packages/"
    - "ssh irilabo@labrepo.iri.upc.edu -i /root/.ssh/iriLabKeyNopwd -tt /home/irilabo/repo_scripts/update_repo.sh lidar-lite"
33
34
35
  only:
    - tags