Skip to content

Commit e24d4e1

Browse files
author
Corentin Derbois
committed
Fix automatics testing suite
1 parent 29f0442 commit e24d4e1

2 files changed

Lines changed: 6 additions & 23 deletions

File tree

.travis.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: cpp
2-
addons:
3-
apt:
4-
packages:
2+
dist: trusty
3+
env:
54
matrix:
65
include:
76
# code coverage:
@@ -144,32 +143,20 @@ install:
144143
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
145144
MINCONDA_OS=$MINCONDA_OSX;
146145
fi
147-
- wget "http://repo.continuum.io/miniconda/Miniconda3-$MINCONDA_VERSION-$MINCONDA_OS.sh" -O miniconda.sh;
146+
- wget --tries=10 "http://repo.continuum.io/miniconda/Miniconda3-$MINCONDA_VERSION-$MINCONDA_OS.sh" -O miniconda.sh;
148147
- bash miniconda.sh -b -p $HOME/miniconda
149148
- export PATH="$HOME/miniconda/bin:$PATH"
150149
- hash -r
151150
- conda update -yq conda
151+
- conda install -y cmake xtl==0.6.7 xtensor=0.20.10 nlohmann_json=3.7.1 -c conda-forge
152152
- |
153-
# install deps with conda: cmake, gtest, xtensor (and fftw on osx); if conda-forge fails, use xtensor from source
154153
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
155-
conda install -y gtest cmake xtensor fftw -c conda-forge
156-
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
157-
if ! conda install -y gtest cmake xtensor -c conda-forge; then
158-
echo "conda-forge install failed! Installing gtest and cmake from default conda channel."
159-
conda install -y gtest cmake
160-
echo "Installing xtensor from source"
161-
cd $TRAVIS_HOME
162-
git clone https://github.com/QuantStack/xtensor.git
163-
cd xtensor
164-
cmake . -DCMAKE_INSTALL_PREFIX=$HOME/miniconda
165-
make install
166-
cd $TRAVIS_BUILD_DIR
167-
fi
154+
conda install -y fftw -c conda-forge
168155
fi
169156
# Testing
170157
- mkdir $TRAVIS_BUILD_DIR/build
171158
- cd $TRAVIS_BUILD_DIR/build
172-
- cmake -DBUILD_TESTS=ON -DCOVERAGE=$COVERAGE ..
159+
- cmake -DBUILD_TESTS=ON -DDOWNLOAD_GTEST=ON -DCOVERAGE=$COVERAGE ..
173160
- make -j2 test_xtensor-fftw VERBOSE=1
174161
- if [[ "$COVERAGE" == "ON" ]]; then gem install coveralls-lcov; fi
175162
script:

test/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
3333

3434
set(CMAKE_CXX_STANDARD 14)
3535

36-
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Intel")
37-
add_compile_options(-march=native) #-Wunused-parameter -Wextra -Wreorder -Wconversion)
38-
endif()
39-
4036
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
4137
add_compile_options(-ftemplate-backtrace-limit=0)
4238
endif()

0 commit comments

Comments
 (0)