-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
81 lines (65 loc) · 2.04 KB
/
.travis.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
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
# Copyright (c) 2016-2021 Fernando Pelliccioni developers (see AUTHORS)
#
branches:
only:
- master
# - dev
env:
global:
# - CONAN_REFERENCE: "algorithm/0.1"
# - CONAN_USERNAME: "fpelliccioni"
# - CONAN_LOGIN_USERNAME: "fpelliccioni"
# - CONAN_CHANNEL: "stable"
# - CONAN_UPLOAD: "https://taocpp.jfrog.io/artifactory/api/conan/tao"
- TAO_VERSION_MAJOR: "0"
- TAO_VERSION_MINOR: "1"
linux: &linux
os: linux
sudo: required
language: python
python: "3.7"
services:
- docker
# osx: &osx
# os: osx
# language: generic
matrix:
include:
- <<: *linux
env: CONAN_GCC_VERSIONS=9 CONAN_DOCKER_IMAGE=conanio/gcc9
install:
- cd ${TRAVIS_BUILD_DIR}
- chmod +x .travis/install.sh
- ./.travis/install.sh
script:
- cd ${TRAVIS_BUILD_DIR}
- git rev-list --count master
- git fetch --unshallow
- git fetch origin master:master
- git rev-list --count master
- chmod +x .travis/run.sh
- ./.travis/run.sh
# Upload Alias
- |
cd ${TRAVIS_BUILD_DIR}
echo $TRAVIS_REPO_SLUG
REPO_NAME=$(echo $TRAVIS_REPO_SLUG| cut -d'/' -f 2)
echo $REPO_NAME
- eval $(python ci_utils/set_envvars_and_files.py)
#TODO(fernando): configure the remote and user using environment variables
# - conan remote add upload_repo https://taocpp.jfrog.io/artifactory/api/conan/tao
# - conan remote list
- conan user
# - conan user ${CONAN_LOGIN_USERNAME} -r upload_repo -p ${CONAN_PASSWORD}
# - conan user
- echo "conan alias ${REPO_NAME}/0.1.X@tao/${TAO_CONAN_CHANNEL} ${REPO_NAME}/${TAO_CONAN_VERSION}@tao/${TAO_CONAN_CHANNEL}"
- conan alias "${REPO_NAME}/0.1.X@tao/${TAO_CONAN_CHANNEL}" "${REPO_NAME}/${TAO_CONAN_VERSION}@tao/${TAO_CONAN_CHANNEL}"
- echo "conan upload ${REPO_NAME}/0.1.X@tao/${TAO_CONAN_CHANNEL} --all -r upload_repo"
- conan upload "${REPO_NAME}/0.1.X@tao/${TAO_CONAN_CHANNEL}" --all -r upload_repo
# notifications:
# email: false
# webhooks:
# urls: https://webhooks.gitter.im/e/a19dd2b03bf676d2b622
# on_success: change
# on_failure: always