Skip to content

Commit

Permalink
Go Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Mar 16, 2016
1 parent 1055707 commit fe0b4ff
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
*.gcda
Makefile
*.gcov
*.gcda
*.gcno
*qmake_gcov
*.pro.user
travis_qmake_gcc_cpp98_gcov
travis_qmake_gcc_cpp98
travis_qmake_gcc_cpp98_boost
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sudo: true
language: cpp
compiler: gcc
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install: sudo apt-get install -qq g++-5
addons:
apt:
packages: libboost-all-dev
script: ./build.sh
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# travis_qmake_gcc_cpp11_boost
Minimal project that uses qmake, GCC, C++11, Boost and is tested by Travis CI

[![Travis CI logo](TravisCI.png)](https://travis-ci.org)

[![Build Status](https://travis-ci.org/richelbilderbeek/travis_qmake_gcc_cpp11_boost.svg?branch=master)](https://travis-ci.org/richelbilderbeek/travis_qmake_gcc_cpp11_boost)

This GitHub is part of [the Travis C++ Tutorial](https://github.com/richelbilderbeek/travis_cpp_tutorial).

The goal of this project is to have a clean Travis CI build, with specs:
* Build system: `qmake`
* C++ compiler: `gcc`
* C++ version: `C++11`
* Libraries: `STL` and `Boost`
* Code coverage: none
* Source: one single file, `main.cpp`

Simpler builds:
* Libraries: `STL` only: [travis_qmake_gcc_cpp11](https://www.github.com/richelbilderbeek/travis_qmake_gcc_cpp11)
Binary file added TravisCI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
qmake
make
./travis_qmake_gcc_cpp11_boost
5 changes: 5 additions & 0 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
rm *.o
rm Makefile
rm *.pro.user
rm travis_qmake_gcc_cpp11_boost
7 changes: 7 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <boost/graph/adjacency_list.hpp>

int main() {
boost::adjacency_list<> g;
boost::add_vertex(g);
if (boost::num_vertices(g) != 1) return 1;
}
10 changes: 10 additions & 0 deletions travis_qmake_gcc_cpp11_boost.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle qt
SOURCES += main.cpp
QMAKE_CXXFLAGS += -Wall -Wextra -Weffc++ -Werror

QMAKE_CXX = g++-5
QMAKE_LINK = g++-5
QMAKE_CC = gcc-5
QMAKE_CXXFLAGS += -std=c++11

0 comments on commit fe0b4ff

Please sign in to comment.