Skip to content
This repository was archived by the owner on Dec 6, 2018. It is now read-only.

Commit bbf1388

Browse files
committed
Merge pull request #2 from forGGe/travis_integration
Travis integration
2 parents 6e2ed66 + 2bee4a6 commit bbf1388

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: cpp
2+
sudo: required
3+
dist: trusty
4+
install:
5+
- curl https://nixos.org/nix/install | sh
6+
- . $HOME/.nix-profile/etc/profile.d/nix.sh
7+
- nix-shell --pure --run true
8+
9+
script: nix-shell --pure --run ./scripts/ci_test.sh

scripts/ci_test.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
# Builds and executes tests.
3+
4+
set -e # Stop on error
5+
set -v # Be verbose
6+
7+
mkdir build
8+
cd build
9+
cmake ..
10+
make
11+
ctest . --output-on-failure

0 commit comments

Comments
 (0)