Only retry failed tests on Circle CI instead of all.

Retrying all tests is more likely to result in a different set of tests
failing the second time. This change makes sure only the failed tests are
retried.
This commit is contained in:
iphydf 2017-01-19 18:31:09 +00:00
parent 995578f103
commit f185834e9a
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -3,43 +3,42 @@ machine:
MAKEFLAGS: "j4" MAKEFLAGS: "j4"
dependencies: dependencies:
pre: pre:
- sudo apt-get update - sudo apt-get update
- sudo apt-get install clang - sudo apt-get install clang
- sudo apt-get install build-essential libtool autotools-dev automake checkinstall check git yasm - sudo apt-get install build-essential libtool autotools-dev automake checkinstall check git yasm
- sudo apt-get install libopus-dev libvpx-dev pkg-config - sudo apt-get install libopus-dev libvpx-dev pkg-config
# ------------ network_test requires that "localhost" resolves to ::1 ------------ # ------------ network_test requires that "localhost" resolves to ::1 ------------
- sudo bash -c "echo '::1 localhost ipv6-localhost ipv6-loopback' >> /etc/hosts" # ipv6 localhost entry - sudo bash -c "echo '::1 localhost ipv6-localhost ipv6-loopback' >> /etc/hosts" # ipv6 localhost entry
# ------------ network_test requires that "localhost" resolves to ::1 ------------ # ------------ network_test requires that "localhost" resolves to ::1 ------------
#- sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100 #- sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
#- sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100 #- sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100
- gcc --version ; exit 0 - gcc --version ; exit 0
- clang --version ; exit 0 - clang --version ; exit 0
compile: compile:
override: override:
### ------- get libsodium ------- ### ------- get libsodium -------
- mkdir ~/libsodium - mkdir ~/libsodium
- cd ~/libsodium/ ; git clone https://github.com/jedisct1/libsodium.git - cd ~/libsodium/ ; git clone https://github.com/jedisct1/libsodium.git
- cd ~/libsodium/ ; cd libsodium/ ; git checkout tags/1.0.11 - cd ~/libsodium/ ; cd libsodium/ ; git checkout tags/1.0.11
- cd ~/libsodium/ ; cd libsodium/ ; ./autogen.sh - cd ~/libsodium/ ; cd libsodium/ ; ./autogen.sh
- cd ~/libsodium/ ; cd libsodium/ ; ./configure && make check - cd ~/libsodium/ ; cd libsodium/ ; ./configure && make check
- cd ~/libsodium/ ; cd libsodium/ ; sudo bash -c "printf 'y\naa\n\n' | checkinstall --install --pkgname libsodium --pkgversion 1.0.0 --nodoc --deldesc=no --pkglicense='GPL2'" - cd ~/libsodium/ ; cd libsodium/ ; sudo bash -c "printf 'y\naa\n\n' | checkinstall --install --pkgname libsodium --pkgversion 1.0.0 --nodoc --deldesc=no --pkglicense='GPL2'"
- cd ~/libsodium/ ; cd libsodium/ ; sudo ldconfig - cd ~/libsodium/ ; cd libsodium/ ; sudo ldconfig
### ------- get libsodium ------- ### ------- get libsodium -------
##### ------------ BUILD ------------ ##### ------------ BUILD ------------
- cmake -DWARNINGS=OFF . - cmake -DWARNINGS=OFF .
#- cmake . #- cmake .
- make - make
- sudo make install - sudo make install
- sudo ldconfig -v 2>/dev/null | grep toxcore - sudo ldconfig -v 2>/dev/null | grep toxcore
- sudo ldconfig -v 2>/dev/null | grep sodium - sudo ldconfig -v 2>/dev/null | grep sodium
##### ------------ BUILD ------------ ##### ------------ BUILD ------------
test: test:
override: override:
- make VERBOSE=1 test ; ex1=$? ; if [ $ex1 -ne 0 ]; then sleep 60; make VERBOSE=1 test ; exit $? ; fi - make VERBOSE=1 test || make VERBOSE=1 ARGS="--rerun-failed" test