Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use libeatmydata to speed up travis #467

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for not reviewing this earlier.

Is $LIB actually set? I just ran docker containers for ubuntu:xenial & ubuntu:bionic, and it was not.

We can also just hardcode the Ubuntu/Debian x86_64 path for now:
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libeatmydata.so

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fi

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

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


cd docs
make html
Expand Down
1 change: 1 addition & 0 deletions CHANGES/5871.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use libeatmydata to speed up travis