-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.travis.yml
48 lines (40 loc) · 932 Bytes
/
.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
# Travis Configuration
sudo: false
language: objective-c
os: osx
compiler:
- clang
- gcc
# Install Dependencies
before_script:
- if [ "$CXX" = "g++" ]; then export CXX=g++-4.8; fi
- brew update
- brew outdated cmake || brew upgrade cmake
- brew install python
- pip install cpp-coveralls
# Run the Test Script
script:
- cd build
- cmake ..
- cmake --build .
# Test the Core Binaries
- ./clinfo > /dev/null
- ./chlorine > /dev/null
# Test the Mandelbrot Example
- make mandelbrot
- cd examples/mandelbrot
- ./mandelbrot > /dev/null
- cd -
# Test the Swap Example
- make swap
- cd examples/swap
- ./swap > /dev/null
- cd -
# Run the Test Suite
- make check
# Upload Code Coverage Data
after_success:
- coveralls --root .. --exclude chlorine/include/cl.hpp --exclude chlorine/clinfo/clinfo.cpp --exclude tests
# Display Compiler Information
after_script:
- $CXX --version