-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
37 lines (31 loc) · 900 Bytes
/
.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
os: osx
osx_image: xcode10.2
language: cpp
addons:
homebrew:
packages:
- cmake
- python3
- conan
compiler:
- clang
before_cache:
- brew cleanup
cache:
- directories:
- $HOME/Library/Caches/Homebrew
install:
- conan config install https://github.com/includeos/conan_config.git
- conan --version
script:
- conan create . includeos/latest -pr apple-clang-10-macos-toolchain
- VERSION=$(conan inspect -a version . | cut -d " " -f 2)
- |
if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
conan upload --all vmbuild/$VERSION@includeos/latest -r includeos
fi
if [ -n "$TRAVIS_TAG" ]; then
conan copy --all vmbuild/$VERSION@includeos/latest includeos/stable
conan upload --all vmbuild/$VERSION@includeos/latest -r includeos
conan upload --all vmbuild/$VERSION@includeos/stable -r includeos
fi