Skip to content

Commit 48c39e9

Browse files
committed
Merge branch 'ls/travis-prove-order'
Automated tests in Travis CI environment has been optimized by persisting runtime statistics of previous "prove" run, executing tests that take longer before other ones; this reduces the total wallclock time. * ls/travis-prove-order: travis-ci: explicity use container-based infrastructure travis-ci: run previously failed tests first, then slowest to fastest
2 parents 201155c + ce59dff commit 48c39e9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
language: c
22

3+
sudo: false
4+
5+
cache:
6+
directories:
7+
- $HOME/travis-cache
8+
39
os:
410
- linux
511
- osx
@@ -18,7 +24,7 @@ env:
1824
- P4_VERSION="15.2"
1925
- GIT_LFS_VERSION="1.1.0"
2026
- DEFAULT_TEST_TARGET=prove
21-
- GIT_PROVE_OPTS="--timer --jobs 3"
27+
- GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
2228
- GIT_TEST_OPTS="--verbose --tee"
2329
- CFLAGS="-g -O2 -Wall -Werror"
2430
- GIT_TEST_CLONE_2GB=YesPlease
@@ -67,6 +73,8 @@ before_install:
6773
p4 -V | grep Rev.;
6874
echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)";
6975
git-lfs version;
76+
mkdir -p $HOME/travis-cache;
77+
ln -s $HOME/travis-cache/.prove t/.prove;
7078
7179
before_script: make --jobs=2
7280

0 commit comments

Comments
 (0)