-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
61 lines (57 loc) · 1.56 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
61 lines (57 loc) · 1.56 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
stages:
- build
- deploy
bionic-build:
stage: build
image: pllee4/ubuntu-ci:18.04
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apt-get install -y libeigen3-dev
script:
- mkdir build && cd build
- cmake ..
- cmake --build .
bionic-staging:
stage: deploy
only:
- master
image: pllee4/ubuntu-ci:18.04
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apt-get install -y libeigen3-dev
- conan remote add gitlab https://gitlab.com/api/v4/packages/conan
script:
# build conan package
- conan create . pinloon+public+algorithm/devel
- CONAN_LOGIN_USERNAME=ci_user CONAN_PASSWORD=${CI_JOB_TOKEN} conan upload algorithm/0.3.1@pinloon+public+algorithm/devel --all --remote=gitlab
dependencies:
- bionic-build
focal-build:
stage: build
image: pllee4/ubuntu-ci:20.04
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apt-get install -y libeigen3-dev
script:
- mkdir build && cd build
- cmake ..
- cmake --build .
focal-staging:
stage: deploy
only:
- master
image: pllee4/ubuntu-ci:20.04
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apt-get install -y libeigen3-dev
- conan remote add gitlab https://gitlab.com/api/v4/packages/conan
script:
# build conan package
- conan create . pinloon+public+algorithm/devel
- CONAN_LOGIN_USERNAME=ci_user CONAN_PASSWORD=${CI_JOB_TOKEN} conan upload algorithm/0.3.1@pinloon+public+algorithm/devel --all --remote=gitlab
dependencies:
- focal-build