mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Use "phase" script for travis build phases.
This is the first step towards unifying travis configs for toxcore, hstox, and qtox.
This commit is contained in:
parent
6683a4b284
commit
2db31d95fd
14
.travis.yml
14
.travis.yml
|
@ -2,14 +2,14 @@ language: c
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- env: BUILD=hstox ENV=linux
|
- env: JOB=hstox ENV=linux
|
||||||
language: haskell
|
language: haskell
|
||||||
ghc: 7.8
|
ghc: 7.8
|
||||||
- env: BUILD=toxcore ENV=linux
|
- env: JOB=toxcore ENV=linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
- env: BUILD=toxcore ENV=linux
|
- env: JOB=toxcore ENV=linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
- env: BUILD=autotools ENV=linux
|
- env: JOB=autotools ENV=linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
|
@ -38,9 +38,9 @@ cache:
|
||||||
- $HOME/.ghc
|
- $HOME/.ghc
|
||||||
- $HOME/cache
|
- $HOME/cache
|
||||||
|
|
||||||
install: other/travis/${BUILD}-install
|
install: other/travis/phase $JOB $ENV install
|
||||||
script: other/travis/${BUILD}-script
|
script: other/travis/phase $JOB $ENV script
|
||||||
after_script: other/travis/${BUILD}-after_script
|
after_script: other/travis/phase $JOB $ENV after_script
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
irc: "chat.freenode.net#toktok-status"
|
irc: "chat.freenode.net#toktok-status"
|
||||||
|
|
22
other/travis/phase
Executable file
22
other/travis/phase
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e -u -x
|
||||||
|
|
||||||
|
JOB="$1"
|
||||||
|
ENV="$2"
|
||||||
|
PHASE="$3"
|
||||||
|
|
||||||
|
. "other/travis/env.sh"
|
||||||
|
. "other/travis/env-$ENV.sh"
|
||||||
|
|
||||||
|
try_source() {
|
||||||
|
SCRIPT="other/travis/$1"
|
||||||
|
if [ -f "$SCRIPT" ]; then
|
||||||
|
. "$SCRIPT"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
try_source "$PHASE"
|
||||||
|
try_source "$ENV-$PHASE"
|
||||||
|
try_source "$JOB-$PHASE"
|
||||||
|
try_source "$JOB-$ENV-$PHASE"
|
Loading…
Reference in New Issue
Block a user