.gitlab-ci.yml 811 Bytes
Newer Older
Fernando Herrero's avatar
Fernando Herrero committed
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
31
32
33
34
35
36
image: docker.io/labrobotica/labrobotica

variables:
  GIT_SUBMODULE_STRATEGY: recursive

stages:
  - build
  - test
  - deploy

build-package:
  stage: build
  script:
    - apt update
    - apt -y install iri-iriutils-dev iri-comm-dev iri-segway-rmp-200-dev
    - mkdir -pv build
    - cd build
    - cmake -DCMAKE_BUILD_TYPE=RELEASE -DCPACK_PACKAGE_VERSION=$CI_COMMIT_TAG ..
    - ls ..
    - make package -j $(nproc)
    
  artifacts:
    paths:
      - build/*.deb
    expire_in: 2 weeks
  only:
    - tags
    
update_repo:
  stage: deploy
  script:
    - cd build
    - "scp -i /root/.ssh/iriLabKeyNopwd -r *segway-rmp-400*.deb irilabo@147.83.76.226:packages/"
    - "ssh irilabo@147.83.76.226 -i /root/.ssh/iriLabKeyNopwd -tt /home/irilabo/repo_scripts/update_repo.sh segway-rmp-400"
  only:
    - tags