forked from grimfang4/sdl-gpu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (69 loc) · 1.44 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
language: c
dist: trusty
addons:
apt:
packages:
- libsdl2-dev
- cmake-data
- cmake
- doxygen
- graphviz
branches:
only:
- master
matrix:
include:
- os: linux
compiler: gcc
after_success:
- tar -zcvf SDL_gpu-bin-linux-gcc.tar.gz lib
- tar -zcvf SDL_gpu-docs.tar.gz html
# - cd ..
# - git tag -d latest-linux-gcc;
# - git push origin :latest-linux-gcc
# - cd build
# deploy:
# provider: pages
# skip_cleanup: true
# github_token: $GithubDocsToken
# local_dir: html
# on:
# branch: master
# deploy:
# provider: releases
# skip_cleanup: true
# tag_name: latest-linux-gcc
# overwrite: true
# prerelease: true
# file:
# - SDL_gpu-bin-linux-gcc.tar.gz
# - SDL_gpu-docs.tar.gz
# api_key:
# secure: $GithubDocsToken
# name: "Automated Linux GCC build"
# on:
# branch: master
- os: linux
compiler: clang
- os: osx
compiler: gcc
before_install:
- brew update
- brew install
sdl2
- os: osx
compiler: clang
before_install:
- brew update
- brew install
sdl2
before_script:
- if [[ "$BUILD" == "native" ]]; then
$CC --version;
cmake --version;
sdl2-config --version;
fi
- mkdir build
- cd build
- cmake -DBUILD_DEMOS=ON -DBUILD_TESTS=ON -DBUILD_TOOLS=ON -DBUILD_SHARED=ON -DBUILD_STATIC=ON ..
script: make