forked from d3m3vilurr/vita-savemgr
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
50 lines (42 loc) · 1.05 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
language: c
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- kalakris-cmake
packages:
- cppcheck
- curl
- cmake
- patch
- ninja-build
branches:
except:
- /^nightly$/
cache:
directories:
- $VITASDK
- $HOME/opt
before_script:
- travis_wait bash .travis.d/install_toolchain.sh
script:
- cppcheck --error-exitcode=1 --enable=style,performance,portability src/*.c
- mkdir build
- cd build && cmake -GNinja .. && ninja
before_deploy:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- git tag -f nightly
- git push -q https://[email protected]/$TRAVIS_REPO_SLUG -f --tags
deploy:
provider: releases
api_key: $GH_TOKEN
file:
- $TRAVIS_BUILD_DIR/build/savemgr.vpk
overwrite: true
skip_cleanup: true
on:
tags: false
branch: master
after_deploy:
- bash $TRAVIS_BUILD_DIR/.travis.d/deploy_nightly.sh