Merge pull request #1 from nicolasnoble/fix_gcc_4_4

Adding a simple 'buildonly' test.
pull/1135/head
Vijay Pai 10 years ago
commit 4f1350a302
  1. 3
      .travis.yml
  2. 21
      tools/run_tests/run_tests.py

@ -19,9 +19,12 @@ env:
- CONFIG=opt TEST=python - CONFIG=opt TEST=python
- CONFIG=gcov TEST=c - CONFIG=gcov TEST=c
- CONFIG=gcov TEST=c++ - CONFIG=gcov TEST=c++
- USE_GCC=4.4 CONFIG=opt TEST=build
- USE_GCC=4.5 CONFIG=opt TEST=build
script: script:
- rvm use $RUBY_VERSION - rvm use $RUBY_VERSION
- gem install bundler - gem install bundler
- if [ ! -z "$USE_GCC" ] ; then export CC=gcc-$USE_GCC ; export CXX=g++-$USE_GCC ; fi
- ./tools/run_tests/run_tests.py -l $TEST -t -j 16 -c $CONFIG -s 4.0 - ./tools/run_tests/run_tests.py -l $TEST -t -j 16 -c $CONFIG -s 4.0
after_success: after_success:
- if [ "$CONFIG" = "gcov" ] ; then coveralls --exclude third_party --exclude gens -b. --gcov-options '\-p' ; fi - if [ "$CONFIG" = "gcov" ] ; then coveralls --exclude third_party --exclude gens -b. --gcov-options '\-p' ; fi

@ -224,6 +224,24 @@ class CSharpLanguage(object):
def __str__(self): def __str__(self):
return 'csharp' return 'csharp'
class Build(object):
def test_specs(self, config, travis):
return []
def make_targets(self):
return ['all']
def build_steps(self):
return []
def supports_multi_config(self):
return True
def __str__(self):
return self.make_target
# different configurations we can run under # different configurations we can run under
_CONFIGS = { _CONFIGS = {
'dbg': SimpleConfig('dbg'), 'dbg': SimpleConfig('dbg'),
@ -248,7 +266,8 @@ _LANGUAGES = {
'php': PhpLanguage(), 'php': PhpLanguage(),
'python': PythonLanguage(), 'python': PythonLanguage(),
'ruby': RubyLanguage(), 'ruby': RubyLanguage(),
'csharp': CSharpLanguage() 'csharp': CSharpLanguage(),
'build': Build(),
} }
# parse command line # parse command line

Loading…
Cancel
Save