forked from andreas-abel/XED-to-XML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
35 lines (32 loc) · 1.25 KB
/
.gitlab-ci.yml
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
# .gitlab-ci.yml
variables:
PACKAGE_NAME: xed
build:
#image: ubuntu:18.04
#image: xed-testing-container
image: amr-registry-pre.caas.intel.com/xed/xed-testing-container
stage: build
script:
- python3 ci-internal.py
build-conan:
image: amr-registry.caas.intel.com/syssim/teamcity-agent:2020.1.5-21ww05
stage: build
script:
- virtualenv --python="$(which python3)" ~/.syssim-virtualenv
- source ~/.syssim-virtualenv/bin/activate
- pip install conan pylint astroid yapf
- conan config install https://gitlab.devtools.intel.com/syssim/conan-config.git
- |-
if [[ $CI_COMMIT_REF_NAME == main && $CI_COMMIT_TAG == v* ]]; then
PACKAGE_REF=$PACKAGE_NAME/${CI_COMMIT_TAG#v*}@xed/stable
else
PACKAGE_REF=$PACKAGE_NAME/$CI_COMMIT_SHA@xed/ci
fi
conan create . $PACKAGE_REF --build=missing --profile=gcc9-native
if [[ $CI_COMMIT_REF_NAME == main && $CI_COMMIT_TAG == v* ]]; then
conan user -r syssim-public "$CONAN_USERNAME" -p "$CONAN_PASSWORD"
conan upload $PACKAGE_REF -r syssim-public --force
LATEST_REF=$PACKAGE_NAME/latest@xed/ci
conan alias $LATEST_REF $PACKAGE_REF
conan upload $LATEST_REF -r syssim-public --force
fi