Skip to content

Commit

Permalink
Adds clean task
Browse files Browse the repository at this point in the history
  • Loading branch information
tinganho committed Nov 26, 2016
1 parent 28cf3ed commit 6af1e3b
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ git:

# Use sed to replace the SSH URL with the public URL, then initialize submodules.
before_install:
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive

matrix:
include:
Expand Down
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ include_directories("${PROJECT_SOURCE_DIR}/Source/Vendors/Glob")
include_directories("${PROJECT_SOURCE_DIR}/Source/Vendors/json/src")

add_executable(l10ns ${PROJECT_SOURCE_DIR}/Source/Program/Exec.cpp)
add_executable(run-tests ${PROJECT_SOURCE_DIR}/Source/TestFramework/Exec.cpp)

add_executable(accept-baseline ${PROJECT_SOURCE_DIR}/Tasks/AcceptBaseline.cpp)
add_executable(clean-project ${PROJECT_SOURCE_DIR}/Tasks/Clean.cpp)
add_executable(diff ${PROJECT_SOURCE_DIR}/Tasks/Diff.cpp)
add_executable(generate-diagnostics ${PROJECT_SOURCE_DIR}/Tasks/GenerateDiagnostics.cpp)
add_executable(run-tests ${PROJECT_SOURCE_DIR}/Source/TestFramework/Exec.cpp)

target_link_libraries(l10ns glob ${Boost_LIBRARIES})
target_link_libraries(run-tests glob ${Boost_LIBRARIES})

target_link_libraries(accept-baseline glob ${Boost_LIBRARIES})
target_link_libraries(generate-diagnostics glob ${Boost_LIBRARIES})
target_link_libraries(clean-project glob ${Boost_LIBRARIES})
target_link_libraries(diff glob ${Boost_LIBRARIES})
target_link_libraries(generate-diagnostics glob ${Boost_LIBRARIES})
target_link_libraries(run-tests glob ${Boost_LIBRARIES})
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"Date",
"Number"
],
"DependencyTest": "bin/dep-test",
"DependencyTest": "dep-test",
"Execute": "node bin/l10ns-ts.js"
}
1 change: 1 addition & 0 deletions Source/Extensions/JavaScript/dep-test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node --version
1 change: 0 additions & 1 deletion Source/Program/CommandParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,4 @@ Command* parse_command_args(int argc, char* argv[]) {

return command;
}

} // L10ns
2 changes: 1 addition & 1 deletion Source/Program/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ bool copy_folder(fs::path const & source, fs::path const & destination) {
}
}
catch (fs::filesystem_error const & e) {
std:: cerr << e.what() << '\n';
cerr << e.what() << '\n';
}
}
return true;
Expand Down
1 change: 0 additions & 1 deletion Source/Vendors/yaml-cpp
Submodule yaml-cpp deleted from b57efe
7 changes: 6 additions & 1 deletion Tasks/Clean.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

int main() {
#include "Utils.cpp"
#include "Configurations.h"

using namespace L10ns;

int main() {
remove_all(PROJECT_DIR "Tests/Current");
}

0 comments on commit 6af1e3b

Please sign in to comment.