How to test both Python and C++ in one .travis.yml without running the C++ multiple times?
问题 https://github.com/travis-ci/travis-ci/issues/538 doesn't seem to really help. I have this .travis.yml for libais: language: python python: - "2.7" - "3.4" before_install: - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - sudo apt-get update -qq install: - sudo apt-get install -qq gcc-4.8 g++-4.8 - CC=g++-4.8 python setup.py install script: - python setup.py test - (cd src && CC=gcc-4.8 CXX=g++-4.8 make -f Makefile-custom test) The last line of the script triggers the c++ testing. It