From b790190edef5b96475075259893f7bc67f599c5c Mon Sep 17 00:00:00 2001 From: Dinghua Li Date: Sun, 31 Mar 2019 00:25:11 -0700 Subject: [PATCH] fix travis ci --- .travis.yml | 12 ++++++++---- CMakeLists.txt | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4831f08..80159e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/CMakeLists.txt b/CMakeLists.txt index 15b083f..0a2bd75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")