Skip to content

Commit a10ddff

Browse files
author
Morris Hafner
committed
Add Travis and AppVeyor
1 parent efbe6d5 commit a10ddff

File tree

7 files changed

+108
-2
lines changed

7 files changed

+108
-2
lines changed

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
env:
2+
global:
3+
- CONAN_BUILD_REQUIRES="cmake_installer/3.13.4@conan/stable, ninja/1.9.0"
4+
- CONAN_CMAKE_GENERATOR=Ninja
5+
- CONAN_PRINT_RUN_COMMANDS=1
6+
7+
linux: &linux
8+
os: linux
9+
sudo: required
10+
language: python
11+
python: "3.6"
12+
services:
13+
- docker
14+
osx: &osx
15+
os: osx
16+
language: generic
17+
matrix:
18+
include:
19+
- <<: *linux
20+
env: CONAN_GCC_VERSIONS=9 CONAN_ARCHS=armv8 CONAN_DOCKER_IMAGE=conanio/gcc9-armv8
21+
- <<: *linux
22+
env: CONAN_GCC_VERSIONS=5 CONAN_DOCKER_IMAGE=conanio/gcc5
23+
- <<: *linux
24+
env: CONAN_CLANG_VERSIONS=3.9 CONAN_DOCKER_IMAGE=conanio/clang39
25+
- <<: *linux
26+
env: CONAN_CLANG_VERSIONS=8 CONAN_ARCHS=x86_64 CONAN_DOCKER_IMAGE=conanio/clang8
27+
28+
install:
29+
- chmod +x .travis/install.sh
30+
- ./.travis/install.sh
31+
32+
script:
33+
- chmod +x .travis/run.sh
34+
- ./.travis/run.sh

.travis/install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
pip install conan --upgrade
7+
pip install conan_package_tools==0.30.2
8+
9+
conan user

.travis/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
python build.py

appveyor.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
build: false
2+
3+
environment:
4+
CONAN_BUILD_POLICY: missing
5+
CONAN_BUILD_REQUIRES: "cmake_installer/3.13.4@conan/stable, ninja/1.9.0"
6+
CONAN_CMAKE_GENERATOR: Ninja
7+
CONAN_PRINT_RUN_COMMANDS: 1
8+
PYTHON_HOME: "C:\\Python37"
9+
10+
matrix:
11+
- MINGW_CONFIGURATIONS: '6@x86_64@seh@posix'
12+
- MINGW_CONFIGURATIONS: '7@x86_64@seh@posix'
13+
- MINGW_CONFIGURATIONS: '8@x86_64@seh@posix'
14+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
15+
CONAN_VISUAL_VERSIONS: 15
16+
CONAN_BUILD_TYPES: Release
17+
CONAN_ARCHS: x86_64
18+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
19+
CONAN_VISUAL_VERSIONS: 15
20+
CONAN_BUILD_TYPES: Debug
21+
CONAN_ARCHS: x86_64
22+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
23+
CONAN_VISUAL_VERSIONS: 15
24+
CONAN_BUILD_TYPES: Debug
25+
CONAN_ARCHS: x86_64
26+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
27+
CONAN_VISUAL_VERSIONS: 16
28+
CONAN_BUILD_TYPES: Release
29+
CONAN_ARCHS: x86_64
30+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
31+
CONAN_VISUAL_VERSIONS: 16
32+
CONAN_BUILD_TYPES: Debug
33+
CONAN_ARCHS: x86_64
34+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
35+
CONAN_VISUAL_VERSIONS: 16
36+
CONAN_BUILD_TYPES: Debug
37+
CONAN_ARCHS: x86_64
38+
39+
install:
40+
- set PATH=%PYTHON_HOME%;%PYTHON_HOME%/Scripts/;%PATH%
41+
- pip.exe install conan --upgrade
42+
- pip.exe install conan_package_tools
43+
- conan user # It creates the conan data directory
44+
45+
test_script:
46+
- python build.py

build.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
from cpt.packager import ConanMultiPackager
5+
6+
if __name__ == "__main__":
7+
builder = ConanMultiPackager()
8+
builder.add_common_builds(pure_c=False)
9+
builder.run()

conanfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@ class SYCLInfoConan(ConanFile):
6363
build_requires = "lyra/1.1.0", "jsonformoderncpp/3.7.2@vthiery/stable"
6464
exports_sources = (
6565
".clang*",
66+
".gitignore",
6667
"cmake/*",
6768
"CMakeLists.txt",
68-
"LICENSE.TXT",
6969
"imp-finder/*",
7070
"impl-matchers/*",
71+
"LICENSE.TXT",
72+
"README.md",
73+
"sycl-info-cpack.cmake",
7174
"sycl-info/*",
7275
"target-selector/*",
7376
)

config/conan/remotes.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
conan-center https://api.bintray.com/conan/conan/conan-center True
2-
bincrafters https://api.bintray.com/conan/bincrafters/public-conan True

0 commit comments

Comments
 (0)