Skip to content

Commit b4bd74d

Browse files
committed
Add sources and CI
1 parent e62c45b commit b4bd74d

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@
3030
*.exe
3131
*.out
3232
*.app
33+
34+
# Build directories
35+
*build*/

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cmake_minimum_required(VERSION 3.0)
2+
3+
project(hello_world CXX)
4+
5+
add_executable(hello_world hello_world.cpp)
6+
7+
enable_testing()
8+
9+
add_test(hello hello_world)

hello_world.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <cstdlib>
2+
#include <iostream>
3+
4+
int main() {
5+
std::cout << "Hello, Danger world!" << std::endl;
6+
return EXIT_SUCCESS;
7+
}

0 commit comments

Comments
 (0)