-
Notifications
You must be signed in to change notification settings - Fork 92
/
.travis.yml
57 lines (51 loc) · 1.53 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
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
- mkdir ~/.git
- cd $TRAVIS_BUILD_DIR
- 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
- USE_LINT=1 python build.py output
- 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 "builds@travis-ci.com"
- 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