Skip to content

Commit f3cd608

Browse files
committed
Travis (basic) configuration
Added Travis build success image
1 parent fd3e720 commit f3cd608

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed

.travis.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Use new trusty images, should yield newer compilers and packages
2+
sudo: required
3+
dist: trusty
4+
language: cpp
5+
6+
matrix:
7+
include:
8+
- compiler: gcc
9+
addons:
10+
apt:
11+
sources:
12+
- ubuntu-toolchain-r-test
13+
- george-edison55-precise-backports
14+
packages:
15+
- g++-4.9
16+
- cmake
17+
- cmake-data
18+
env: COMPILER=g++-4.9
19+
- compiler: gcc
20+
addons:
21+
apt:
22+
sources:
23+
- ubuntu-toolchain-r-test
24+
- george-edison55-precise-backports
25+
packages:
26+
- g++-5
27+
- cmake
28+
- cmake-data
29+
env: COMPILER=g++-5
30+
- compiler: clang
31+
addons:
32+
apt:
33+
sources:
34+
- ubuntu-toolchain-r-test
35+
- llvm-toolchain-precise-3.6
36+
- george-edison55-precise-backports
37+
packages:
38+
- clang-3.6
39+
- cmake
40+
- cmake-data
41+
env: COMPILER=clang++-3.6
42+
- compiler: clang
43+
addons:
44+
apt:
45+
sources:
46+
- ubuntu-toolchain-r-test
47+
- llvm-toolchain-precise-3.7
48+
- george-edison55-precise-backports
49+
packages:
50+
- clang-3.7
51+
- cmake
52+
- cmake-data
53+
env: COMPILER=clang++-3.7
54+
55+
script:
56+
- mkdir build
57+
- cd build
58+
- cmake -DCMAKE_CXX_COMPILER=$COMPILER .. && make

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# CompressedStacks.cpp
2+
[![Build Status](https://travis-ci.org/Azzaare/CompressedStacks.cpp.svg?branch=master)](https://travis-ci.org/Azzaare/CompressedStacks.cpp)
23

34
The CompressedStacks.cpp module/library implements a time-space trade-off structure for stack's algorithms.
45

include/stackAlgo.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ StackAlgo<T, D>::StackAlgo(std::string fileName, bool useclassic)
107107

108108
std::vector<std::string> parameters = readHeader();
109109

110-
int p, b, n = 0;
110+
int p = 0, b = 0, n = 0;
111111
bool foundP = false;
112112
bool foundBuffer = false;
113113

0 commit comments

Comments
 (0)