mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Travisci: add tag and cron support (#211)
travis ci enhancement [skip ci]
This commit is contained in:
commit
b9d1439f05
@ -4,7 +4,6 @@ cache:
|
|||||||
- $HOME/brew-cache
|
- $HOME/brew-cache
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
slack: hyperiondevteam:JHOhorlTVgcYKwT6Tj1nnGou
|
|
||||||
language: cpp
|
language: cpp
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
@ -15,18 +15,29 @@ else
|
|||||||
procs=4
|
procs=4
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# compile prepare
|
||||||
# Compile hyperion
|
|
||||||
|
|
||||||
mkdir build || exit 1
|
mkdir build || exit 1
|
||||||
cd build
|
cd build
|
||||||
cmake -DPLATFORM=x86-dev -DCMAKE_BUILD_TYPE=Debug .. || exit 2
|
|
||||||
|
# Compile hyperion for tags
|
||||||
|
if [[ -n $TRAVIS_TAG ]]; then
|
||||||
|
cmake -DPLATFORM=x86 -DCMAKE_BUILD_TYPE=Release .. || exit 2
|
||||||
make -j$(nproc) || exit 3
|
make -j$(nproc) || exit 3
|
||||||
|
|
||||||
|
# Compile hyperion for cron
|
||||||
|
elif [[ $TRAVIS_EVENT_TYPE == 'cron' ]]; then
|
||||||
|
cmake -DPLATFORM=x86 -DCMAKE_BUILD_TYPE=Debug .. || exit 4
|
||||||
|
make -j$(nproc) || exit 5
|
||||||
|
|
||||||
|
# Compile for PR
|
||||||
|
else
|
||||||
|
cmake -DPLATFORM=x86-dev -DCMAKE_BUILD_TYPE=Debug .. || exit 6
|
||||||
|
make -j$(nproc) || exit 7
|
||||||
|
fi
|
||||||
|
|
||||||
# Build the package on Linux
|
# Build the package on Linux
|
||||||
|
|
||||||
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
|
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
|
||||||
make -j$(nproc) package || exit 4
|
make -j$(nproc) package || exit 8
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user