We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e62c45b commit b4bd74dCopy full SHA for b4bd74d
.gitignore
@@ -30,3 +30,6 @@
30
*.exe
31
*.out
32
*.app
33
+
34
+# Build directories
35
+*build*/
.travis.yml
@@ -0,0 +1,12 @@
1
+language: cpp
2
+sudo: false
3
+dist: trusty
4
+compiler: clang
5
+os: linux
6
+before_script:
7
+- cmake --version
8
+script:
9
+- cmake -H. -Bbuild
10
+- cd build
11
+- make
12
+- ctest
CMakeLists.txt
@@ -0,0 +1,9 @@
+cmake_minimum_required(VERSION 3.0)
+project(hello_world CXX)
+add_executable(hello_world hello_world.cpp)
+enable_testing()
+add_test(hello hello_world)
hello_world.cpp
@@ -0,0 +1,7 @@
+#include <cstdlib>
+#include <iostream>
+int main() {
+ std::cout << "Hello, Danger world!" << std::endl;
+ return EXIT_SUCCESS;
+}
0 commit comments