Skip to content

Commit

Permalink
Use libeatmydata to speed up travis
Browse files Browse the repository at this point in the history
  • Loading branch information
fao89 committed Dec 20, 2019
1 parent 45f2ab2 commit e7946f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ addons:
- httpie
- jq
- nginx
- eatmydata
# postgres versions provided by el7 RHSCL (lowest supportable version)
postgresql: '9.6'
before_install: .travis/before_install.sh
Expand Down
12 changes: 10 additions & 2 deletions .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,18 @@ export FUNC_TEST_SCRIPT=$TRAVIS_BUILD_DIR/.travis/func_test_script.sh
# this script.
export DJANGO_SETTINGS_MODULE=pulpcore.app.settings

if [ -r /usr/lib/libeatmydata/libeatmydata.so ]; then
# much faster package installation
export LD_PRELOAD='/usr/lib/libeatmydata/libeatmydata.so'
elif [ -r /usr/lib/*/libeatmydata.so ]; then
# much faster package installation
export LD_PRELOAD='/usr/$LIB/libeatmydata.so'
fi

if [ "$TEST" = 'docs' ]; then

export PULP_CONTENT_ORIGIN=http://$(hostname):24816


cd docs
make html
Expand Down

0 comments on commit e7946f8

Please sign in to comment.