-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up .travis.yml and created travis-scripts folder
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@cfengine.com>
- Loading branch information
1 parent
19de827
commit dfc40ca
Showing
8 changed files
with
102 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,5 +110,6 @@ cscope.* | |
/core.includes | ||
*.autosave | ||
|
||
# Mac Finder | ||
# Mac | ||
.DS_Store | ||
*.dSYM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cd $TRAVIS_BUILD_DIR | ||
mkdir artifacts | ||
test "x$DIST_TARBALL" != x && cp --verbose "$DIST_TARBALL" artifacts/ | ||
gzip config.log && mv config.log.gz artifacts/ | ||
gzip tests/acceptance/summary.log && mv tests/acceptance/summary.log.gz artifacts/acceptance_summary.log.gz | ||
gzip tests/acceptance/test.log && mv tests/acceptance/test.log.gz artifacts/acceptance.log.gz | ||
zip -r artifacts/acceptance_workdir.zip tests/acceptance/workdir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# A tag ending with "number.number" is not a prerelease | ||
if echo $DIST_TARBALL | grep -E -q '[0-9]{1,2}\.[0-9]{1,2}\.tar\.gz'; | ||
then | ||
IS_PRERELEASE=false; | ||
else | ||
IS_PRERELEASE=true; | ||
fi; | ||
export IS_PRERELEASE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sudo apt-get -qq update | ||
# Needed to build | ||
sudo apt-get install -y libssl-dev libpam0g-dev libtokyocabinet-dev | ||
# Optional | ||
sudo apt-get install -y libxml2-dev libacl1-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
INSTDIR=$HOME/cf_install | ||
cd $TRAVIS_BUILD_DIR | ||
|
||
# if [ "$JOB_TYPE" = style_check ]; | ||
# then | ||
# # sh tests/misc/style_check.sh; | ||
# exit 0; | ||
# fi | ||
|
||
# Fetch the tags from upstream, even if we are running on a foreign clone; | ||
# Needed for determine-version.py to work | ||
git remote add upstream https://github.com/cfengine/core.git && git fetch -q upstream 'refs/tags/*:refs/tags/*' | ||
|
||
if [[ ${TRAVIS_OS_NAME} = osx ]]; then | ||
# On osx the default gcc is actually LLVM | ||
export CC=gcc-6 | ||
NO_CONFIGURE=1 ./autogen.sh | ||
./configure --enable-debug --prefix=$INSTDIR --with-init-script --with-lmdb=/usr/local/Cellar/lmdb/ --with-openssl=/usr/local/opt/openssl | ||
else | ||
NO_CONFIGURE=1 ./autogen.sh | ||
./configure --enable-debug --with-tokyocabinet --prefix=$INSTDIR --with-init-script | ||
fi | ||
|
||
make dist | ||
export DIST_TARBALL=`echo cfengine-*.tar.gz` | ||
|
||
if [ "$JOB_TYPE" = compile_and_unit_test ]; | ||
then | ||
make CFLAGS=-Werror && | ||
make -C tests/unit check; | ||
return; | ||
else | ||
make; | ||
fi | ||
|
||
cd tests/acceptance | ||
chmod -R go-w . | ||
|
||
if [ "$JOB_TYPE" = acceptance_tests_common ]; | ||
then | ||
./testall --tests=common; | ||
return; | ||
fi | ||
|
||
# WARNING: the following job runs the selected tests as root! | ||
if [ "$JOB_TYPE" = acceptance_tests_unsafe_serial_network_etc ]; then | ||
./testall --gainroot=sudo --tests=timed,errorexit,libxml2,libcurl,serial,network,unsafe; | ||
return; | ||
fi |