-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathunix-build.yml
More file actions
68 lines (61 loc) · 1.9 KB
/
unix-build.yml
File metadata and controls
68 lines (61 loc) · 1.9 KB
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
steps:
- script: |
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda env create --file environment-dev.yml
source activate xtensor-python
displayName: Install dependencies
- script: |
source activate xtensor-python
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DPYTHON_EXECUTABLE=`which python` -DDOWNLOAD_GTEST=ON $(Build.SourcesDirectory)
make install
displayName: Configure xtensor-python
workingDirectory: $(Build.BinariesDirectory)
- script: |
source activate xtensor-python
make -j2 test_xtensor_python
displayName: Build xtensor-python
workingDirectory: $(Build.BinariesDirectory)/build
- script: |
source activate xtensor-python
cd test
./test_xtensor_python
displayName: Test xtensor-python (C++)
workingDirectory: $(Build.BinariesDirectory)/build/test
- script: |
source activate xtensor-python
py.test -s
displayName: Test xtensor-python (Python)
workingDirectory: $(Build.SourcesDirectory)
- script: |
source activate xtensor-python
cmake -Bbuild -DPython_EXECUTABLE=`which python`
cd build
cmake --build .
cp ../example.py .
python example.py
cd ..
displayName: Example - readme 1
workingDirectory: $(Build.SourcesDirectory)/docs/source/examples/readme_example_1
- script: |
source activate xtensor-python
cmake -Bbuild -DPython_EXECUTABLE=`which python`
cd build
cmake --build .
cp ../example.py .
python example.py
cd ..
displayName: Example - Copy 'cast'
workingDirectory: $(Build.SourcesDirectory)/docs/source/examples/copy_cast
- script: |
source activate xtensor-python
cmake -Bbuild -DPython_EXECUTABLE=`which python`
cd build
cmake --build .
cp ../example.py .
python example.py
cd ..
displayName: Example - SFINAE
workingDirectory: $(Build.SourcesDirectory)/docs/source/examples/sfinae