diff options
author | Arnstein Ressem <aressem@gmail.com> | 2021-01-05 13:02:56 +0000 |
---|---|---|
committer | Arnstein Ressem <aressem@gmail.com> | 2021-01-05 13:02:56 +0000 |
commit | ce45259746aa9ff82121cdcb959e597187444463 (patch) | |
tree | 2ac42c9e18775cdf161e361fd32294200a733b86 /travis/travis-build.sh | |
parent | f3d54a087fee498ac1669ad06da1724e2bdce4a8 (diff) |
Try to run systemtests in PR if [run-systemtest] is specified in title
Diffstat (limited to 'travis/travis-build.sh')
-rwxr-xr-x | travis/travis-build.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/travis/travis-build.sh b/travis/travis-build.sh index 47d1496b0cf..3e928676b73 100755 --- a/travis/travis-build.sh +++ b/travis/travis-build.sh @@ -49,4 +49,30 @@ case $SHOULD_BUILD in ;; esac +if [[ $SHOULD_BUILD == systemtest ]]; then + yum -y --setopt=skip_missing_names_on_install=False install \ + zstd \ + devtoolset-9-gcc-c++ \ + devtoolset-9-libatomic-devel \ + devtoolset-9-binutils \ + libxml2-devel \ + rh-ruby25-rubygems-devel \ + rh-ruby25-ruby-devel \ + rh-ruby25 \ + rh-ruby25-rubygem-net-telnet + + source /opt/rh/rh-ruby25/enable + gem install libxml-ruby gnuplot distribution test-unit builder concurrent-ruby + + cd $HOME + git clone https://github.com/vespa-engine/system-test + export SYSTEM_TEST_DIR=$(pwd)/system-test + export RUBYLIB="$SYSTEM_TEST_DIR/lib:$SYSTEM_TEST_DIR/tests" + useradd vespa + + $SYSTEM_TEST_DIR/lib/node_server.rb & + NODE_SERVER_PID=$! + sleep 3 + ruby $SYSTEM_TEST_DIR/tests/search/basicsearch/basic_search.rb || (/opt/vespa/bin/vespa-logfmt -N && false) +fi |