Skip to content

Commit

Permalink
fix travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
voutcn committed Mar 31, 2019
1 parent 162a3dd commit b790190
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ language: python
python:
- "2.7"
- "3.4"
script: git submodule update --init && mkdir build && cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON && make -j2 simple_test && \
sudo make install && megahit --test && megahit --test --kmin-1pass && \
megahit --test --no-hw-accel
script:
- mkdir build
- cd build && cmake .. -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON
- make -j2 simple_test
- sudo make install
- megahit --test
- megahit --test --kmin-1pass
- megahit --test --no-hw-accel
after_success:
# Create lcov report
- lcov --capture --directory . --output-file coverage.info
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if (COVERAGE)
endif (COVERAGE)

set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "-g -ggdb -O0")
set(CMAKE_CXX_FLAGS_DEBUG "-g -ggdb -O1")


message(STATUS "Build type: ${CMAKE_BUILD_TYPE}: ${CMAKE_CXX_FLAGS}")
Expand Down

0 comments on commit b790190

Please sign in to comment.