initialize package suffix with branch and PR
This commit is contained in:
parent
36c5461c99
commit
3dd0638623
13
.travis.yml
13
.travis.yml
|
@ -60,7 +60,18 @@ before_install:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- ./bootstrap
|
- if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
|
./bootstrap;
|
||||||
|
fi
|
||||||
|
- if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||||
|
./bootstrap.ci -s "-pr$TRAVIS_PULL_REQUEST";
|
||||||
|
fi
|
||||||
|
- if [ "$TRAVIS_BRANCH" != "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
|
./bootstrap.ci -s "-$TRAVIS_BRANCH";
|
||||||
|
fi
|
||||||
|
- if [ "$TRAVIS_BRANCH" != "master" -a "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||||
|
./bootstrap.ci -s "-$TRAVIS_BRANCH-pr$TRAVIS_PULL_REQUEST";
|
||||||
|
fi
|
||||||
- if [ -z "$HOST" ]; then
|
- if [ -z "$HOST" ]; then
|
||||||
CFLAGS="-Werror" ./configure $ENABLE_DOC --enable-dnie-ui;
|
CFLAGS="-Werror" ./configure $ENABLE_DOC --enable-dnie-ui;
|
||||||
else
|
else
|
||||||
|
|
|
@ -87,7 +87,10 @@ build_script:
|
||||||
}
|
}
|
||||||
$env:NMAKE_EXTRA="OPENPACE_DEF=/DENABLE_OPENPACE OPENPACE_DIR=C:\openpace-${env:OPENSSL_PF} ${env:NMAKE_EXTRA}"
|
$env:NMAKE_EXTRA="OPENPACE_DEF=/DENABLE_OPENPACE OPENPACE_DIR=C:\openpace-${env:OPENSSL_PF} ${env:NMAKE_EXTRA}"
|
||||||
}
|
}
|
||||||
- bash -c "exec 0</dev/null && ./bootstrap"
|
- bash -c "exec 0</dev/null && if [ \"$APPVEYOR_REPO_BRANCH\" == \"master\" -a -z \"$APPVEYOR_PULL_REQUEST_NUMBER\" ]; then ./bootstrap; fi"
|
||||||
|
- bash -c "exec 0</dev/null && if [ \"$APPVEYOR_REPO_BRANCH\" == \"master\" -a -n \"$APPVEYOR_PULL_REQUEST_NUMBER\" ]; then ./bootstrap.ci -s \"-pr$APPVEYOR_PULL_REQUEST_NUMBER\"; fi"
|
||||||
|
- bash -c "exec 0</dev/null && if [ \"$APPVEYOR_REPO_BRANCH\" != \"master\" -a -z \"$APPVEYOR_PULL_REQUEST_NUMBER\" ]; then ./bootstrap.ci -s \"-$APPVEYOR_REPO_BRANCH\"; fi"
|
||||||
|
- bash -c "exec 0</dev/null && if [ \"$APPVEYOR_REPO_BRANCH\" != \"master\" -a -n \"$APPVEYOR_PULL_REQUEST_NUMBER\" ]; then ./bootstrap.ci -s \"-$APPVEYOR_REPO_BRANCH-prAPPVEYOR_PULL_REQUEST_NUMBER\"; fi"
|
||||||
# disable features to speed up the script
|
# disable features to speed up the script
|
||||||
- bash -c "exec 0</dev/null && ./configure --with-cygwin-native --disable-openssl --disable-readline --disable-zlib || cat config.log"
|
- bash -c "exec 0</dev/null && ./configure --with-cygwin-native --disable-openssl --disable-readline --disable-zlib || cat config.log"
|
||||||
- bash -c "make -C etc opensc.conf"
|
- bash -c "make -C etc opensc.conf"
|
||||||
|
|
Loading…
Reference in New Issue