chore(.travis.yml.in,script/test_registry): fix build

This commit is contained in:
Sebastian Ullrich 2017-05-31 17:18:12 +02:00 committed by Leonardo de Moura
parent 0ab3869a6a
commit f87f35d623
3 changed files with 22 additions and 11 deletions

View file

@ -60,6 +60,13 @@ matrix:
CMAKE_BUILD_TYPE=Release
MULTI_THREAD=OFF
- os: linux
env:
CMAKE_CXX_COMPILER=g++-4.9
CMAKE_BUILD_TYPE=Release
TEST=OFF
TEST_LEANPKG_REGISTRY=ON
- os: linux
env:
CMAKE_CXX_COMPILER=clang++-3.4
@ -73,13 +80,6 @@ matrix:
CMAKE_CXX_COMPILER=g++-4.9
CMAKE_BUILD_TYPE=Debug
- os: linux
dist: precise
env:
CMAKE_CXX_COMPILER=g++-4.9
CMAKE_BUILD_TYPE=Debug
TEST_LEANPKG_REGISTRY=ON
- os: osx
env:
CMAKE_CXX_COMPILER=clang++
@ -116,10 +116,11 @@ script:
-DLEAN_EXTRA_MAKE_OPTS=$LEAN_EXTRA_MAKE_OPTS
../src || exit
- make -j2 || exit
- export PATH="$TRAVIS_BUILD_DIR/bin:$PATH"
- cpack
- yes "A" | ctest -j2 --output-on-failure
- if [[ $TEST != OFF ]]; then yes "A" | ctest -j2 --output-on-failure; fi
- if [[ $PACKAGE == TRUE ]]; then make package; fi
- if [[ $TEST_LEANPKG_REGISTRY == ON ]]; then python ../script/test_registry.py; fi
- if [[ $TEST_LEANPKG_REGISTRY == ON ]]; then ../script/test_registry.py; fi
- cd ..
after_script:

View file

@ -60,6 +60,13 @@ matrix:
CMAKE_BUILD_TYPE=Release
MULTI_THREAD=OFF
- os: linux
env:
CMAKE_CXX_COMPILER=g++-4.9
CMAKE_BUILD_TYPE=Release
TEST=OFF
TEST_LEANPKG_REGISTRY=ON
- os: linux
env:
CMAKE_CXX_COMPILER=clang++-3.4
@ -109,9 +116,11 @@ script:
-DLEAN_EXTRA_MAKE_OPTS=$LEAN_EXTRA_MAKE_OPTS
../src || exit
- make -j2 || exit
- export PATH="$TRAVIS_BUILD_DIR/bin:$PATH"
- cpack
- yes "A" | ctest -j2 --output-on-failure
- if [[ $TEST != OFF ]]; then yes "A" | ctest -j2 --output-on-failure; fi
- if [[ $PACKAGE == TRUE ]]; then make package; fi
- if [[ $TEST_LEANPKG_REGISTRY == ON ]]; then ../script/test_registry.py; fi
- cd ..
after_script:

3
script/test_registry.py Normal file → Executable file
View file

@ -1,6 +1,7 @@
#!/usr/bin/env python3
import json
import os
import requests
import subprocess
def get_packages():