/
config.yml
53 lines (50 loc) · 1.84 KB
/
config.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
# Copyright (c) 2018 Parsa Amini
# Copyright (c) 2018 Hartmut Kaiser
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
version: 2
anchors:
- &docker_config
docker:
- image: stellargroup/hpx:dev
entrypoint: /bin/bash
################################################################################
jobs:
build_test:
<<: *docker_config
working_directory: /blaze_tensors
steps:
- checkout:
path:
/blaze_tensors
# Blaze
- run:
name: Install Blaze Prerequisites
command: apt-get install --yes --no-install-recommends libblas-dev liblapack-dev
- run:
name: Install Blaze
command: |
git clone --depth=1 https://bitbucket.org/blaze-lib/blaze.git /blaze-src
cmake -H/blaze-src -B/blaze-src/build -DBLAZE_SMP_THREADS=HPX
cmake --build /blaze-src/build --target install
# CMake
- run:
name: Run CMake
command: cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DBLAZETENSOR_WITH_TESTS=ON -Dblazetest_DIR=/blaze-src/blazetest
# Build all targets
- run:
name: Build all targets
command: cmake --build build -- -j1
# Run all tests
- run:
name: Run all the tests
environment:
CTEST_OUTPUT_ON_FAILURE: TRUE
command: cmake --build build --target test -- -j1
################################################################################
workflows:
version: 2
build_and_test:
jobs:
- build_test