FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
xtensor-python/.travis.yml at master · phaustin/xtensor-python · GitHub
phaustin
xtensor-python
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
xtensor-python
/
.travis.yml
Copy path
More file actions
More file actions
Latest commit
History
History
History
110 lines (107 loc) · 2.98 KB
Breadcrumbs
xtensor-python
/
.travis.yml
Copy path
File metadata and controls
110 lines (107 loc) · 2.98 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
language
:
cpp
matrix
:
include
:
-
os
:
linux
addons
:
apt
:
sources
:
-
ubuntu-toolchain-r-test
packages
:
-
g++-4.9
env
:
COMPILER=gcc GCC=4.9 PY=3
-
os
:
linux
addons
:
apt
:
sources
:
-
ubuntu-toolchain-r-test
packages
:
-
g++-5
env
:
COMPILER=gcc GCC=5 PY=3
-
os
:
linux
addons
:
apt
:
sources
:
-
ubuntu-toolchain-r-test
packages
:
-
g++-5
env
:
COMPILER=gcc GCC=5 PY=2
-
os
:
linux
addons
:
apt
:
sources
:
-
ubuntu-toolchain-r-test
-
llvm-toolchain-precise-3.6
packages
:
-
clang-3.6
env
:
COMPILER=clang CLANG=3.6 PY=3
-
os
:
linux
addons
:
apt
:
sources
:
-
ubuntu-toolchain-r-test
-
llvm-toolchain-precise-3.7
packages
:
-
clang-3.7
env
:
COMPILER=clang CLANG=3.7 PY=3
-
os
:
linux
addons
:
apt
:
sources
:
-
ubuntu-toolchain-r-test
-
llvm-toolchain-precise-3.8
packages
:
-
clang-3.8
env
:
COMPILER=clang CLANG=3.8 PY=3
-
os
:
osx
osx_image
:
xcode8
compiler
:
clang
env
:
PY=3
env
:
global
:
-
MINCONDA_VERSION="latest"
-
MINCONDA_LINUX="Linux-x86_64"
-
MINCONDA_OSX="MacOSX-x86_64"
before_install
:
-
|
# Configure build variables
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ "$COMPILER" == "gcc" ]]; then
export CXX=g++-$GCC CC=gcc-$GCC;
fi
if [[ "$COMPILER" == "clang" ]]; then
export CXX=clang++-$CLANG CC=clang-$CLANG;
fi
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export CXX=clang++ CC=clang PYTHONHOME=$HOME/miniconda;
fi
install
:
#
Define the version of miniconda to download
-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
MINCONDA_OS=$MINCONDA_LINUX;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
MINCONDA_OS=$MINCONDA_OSX;
fi
-
if [[ "$PY" == "3" ]]; then
wget "http://repo.continuum.io/miniconda/Miniconda3-$MINCONDA_VERSION-$MINCONDA_OS.sh" -O miniconda.sh;
else
wget "http://repo.continuum.io/miniconda/Miniconda2-$MINCONDA_VERSION-$MINCONDA_OS.sh" -O miniconda.sh;
fi
-
bash miniconda.sh -b -p $HOME/miniconda
-
export PATH="$HOME/miniconda/bin:$PATH"
-
hash -r
-
conda config --set always_yes yes --set changeps1 no
-
conda update -q conda
#
Useful for debugging any issues with conda
-
conda info -a
-
conda install xtensor==0.10.2 pytest numpy pybind11==2.1.1 -c conda-forge
-
cd test
-
conda env create -f ./test-environment.yml
-
source activate test-xtensor-python
-
cd ..
-
cmake -D BUILD_TESTS=ON -D CMAKE_INSTALL_PREFIX=$HOME/miniconda .
-
make -j2 test_xtensor_python
-
make install
script
:
-
py.test -s
-
cd test
-
./test_xtensor_python
Back
|
FazBrowse Home
|
New Git URL