forked from vitasdk/vita-headers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (55 loc) · 1.71 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
language: c
dist: focal
sudo: false
addons:
apt:
packages:
- libclang1-9
- libclang-cpp9
cache:
directories:
- $HOME/downloads
before_script:
- bash $TRAVIS_BUILD_DIR/.travis.d/download_external_apps.sh
script:
- set -e
- cd $TRAVIS_BUILD_DIR
- python $TRAVIS_BUILD_DIR/.travis.d/definition_check.py
- bash $TRAVIS_BUILD_DIR/.travis.d/definition_ordering.sh
- bash $TRAVIS_BUILD_DIR/.travis.d/download_sdk.sh
- export VITASDK=$PWD/vitasdk
- export PATH=$VITASDK/bin:$PATH
- export INCLUDE_DIR=$TRAVIS_BUILD_DIR/include
# Make sure headers are valid
- find $INCLUDE_DIR -type f -name "*.h" | xargs -I FN -n 1 -P 4 arm-vita-eabi-gcc -I$INCLUDE_DIR -c FN -o /dev/null
- find $INCLUDE_DIR -type f -name "*.h" | xargs -I FN -n 1 -P 4 arm-vita-eabi-g++ -I$INCLUDE_DIR -c FN -o /dev/null
- bash $TRAVIS_BUILD_DIR/.travis.d/download_external_libs.sh
- cd $VITASDK/arm-vita-eabi/include
- rm -rf psp2 psp2kern vitasdk vitasdk.h
- cd $VITASDK/arm-vita-eabi/lib
- rm -rf *_stub.a
- cd $TRAVIS_BUILD_DIR
- cp -r include/* $VITASDK/arm-vita-eabi/include
- vita-libs-gen db.yml output
- cd output
- make > /dev/null
- cp *_stub.a $VITASDK/arm-vita-eabi/lib
- cd $TRAVIS_BUILD_DIR
- git clone https://github.com/vitasdk/samples
- cd samples
- mkdir build
- cd build
- cmake ..
- make
before_deploy:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
deploy:
provider: script
overwrite: true
skip_cleanup: true
script: bash $TRAVIS_BUILD_DIR/.travis.d/deploy_docs.sh
on:
tags: false
branch:
- master