Skip to content

Commit ef33867

Browse files
committed
Use travis multi-line
1 parent 2955b7d commit ef33867

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.travis.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,18 @@ script:
9292
- ls -l /usr/local/lib/
9393
- ls -l /usr/lib/
9494
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd ../src/; cppcheck --error-exitcode=1 .; cd ../build; fi
95-
- if [ "$PERFORMANCE" = "select" ]; then cd examples; ./benchmark_select 8080 $(nproc) & fi;
95+
- |
96+
if [ "$PERFORMANCE" = "select" ]; then
97+
cd examples
98+
./benchmark_select 8080 $(nproc) &
99+
fi
96100
- if [ "$PERFORMANCE" = "select" ]; then ab -n 10000000 -c 1000 localhost:8080/plaintext; fi;
97-
- if [ "$PERFORMANCE" = "thread" ]; then cd examples; ./benchmark_threads 8080 & fi;
98-
- if [ "$PERFORMANCE" = "thread" ]; then ab -n 10000000 -c 1000 localhost:8080/plaintext; fi;
101+
- |
102+
if [ "$PERFORMANCE" = "threads" ]; then
103+
cd examples
104+
./benchmark_threads 8080 &
105+
fi
106+
- if [ "$PERFORMANCE" = "threads" ]; then ab -n 10000000 -c 1000 localhost:8080/plaintext; fi;
99107
after_success:
100108
- if [ "$DEBUG" = "debug" ] && [ "$COVERAGE" = "coverage" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then bash <(curl -s https://codecov.io/bash); fi
101109
matrix:

0 commit comments

Comments
 (0)