forked from glugnith/SHUT_THE_BUG_UP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (47 loc) · 1.11 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language:
- cpp
sudo: true
cache:
directories:
- linux_dependencies
- osx_dependencies
matrix:
include:
- os: osx
osx_image: xcode9.3
- os: linux
env: >
compiler: gcc
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- libboost1.55-dev
- libboost-filesystem1.55-dev
- libboost-iostreams1.55-dev
- libboost-program-options1.55-dev
- libboost-regex1.55-dev
- libboost-log1.55-dev
- ninja-build
before_script:
- |
if [[ $TRAVIS_OS_NAME == "linux" ]]; then
echo "installing dependencies for linux"
./install_dependencies.sh
fi
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
echo "installing dependencies for osx"
./install_dependencies.sh osx
fi
script:
- mkdir -p build
- cd build
- cmake ..
- make
- cd ..
- ls build/bin
- ./build/bin/srb_decompressor < test/compressed_files/hello.cpp.gz
- ./build/bin/srb_decompressor < test/compressed_files/hello.cpp.bz2