Skip to content

Commit c59659c

Browse files
committed
Prevent Travis from generating Swig wrappers
The wrappers have already been generated with a known version of Swig and commited to the repo.
1 parent f23e727 commit c59659c

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ addons:
77
apt:
88
packages:
99
- libtag1-dev
10-
- swig

Rakefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,14 @@ end
2525

2626
$gemspec = Bundler::GemHelper.gemspec
2727

28-
FileList['tasks/**/*.rake'].each { |task| import task }
28+
import 'tasks/docs_coverage.rake'
29+
import 'tasks/ext.rake'
30+
import 'tasks/gemspec_check.rake'
31+
32+
# When importing swig.rake, the *_wrap.cxx files depend on being generated
33+
# by Swig. Since the ExtensionTasks depend on the *_wrap.cxx files,
34+
# compiling the extensions will trigger Swig, which is not desired as
35+
# those files have already been generated and there's no reason to make
36+
# Swig a variable of the CI. To prevent those dependencies, do not import
37+
# swig.rake when running in Travis.
38+
import 'tasks/swig.rake' unless ENV['TRAVIS'] == 'true'

0 commit comments

Comments
 (0)