Add build matrix for arm and ia32
authorCheng Zhao <zcbenz@gmail.com>
Thu, 2 Jul 2015 03:08:29 +0000 (03:08 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 2 Jul 2015 03:13:18 +0000 (03:13 +0000)
.travis.yml
script/cibuild

index dd6d518..af27529 100644 (file)
@@ -1,13 +1,21 @@
+git:
+  depth: 10
+notifications:
+  email: false
+
 language: cpp
 compiler: clang
 os:
   - linux
   - osx
+env:
+  - TARGET_ARCH=x64
 
-notifications:
-  email: false
+matrix:
+  include:
+    - os: linux
+      env: TARGET_ARCH=arm
+    - os: linux
+      env: TARGET_ARCH=ia32
 
 script: './script/cibuild'
-
-git:
-  depth: 10
index 8193908..2b7149d 100755 (executable)
@@ -40,7 +40,11 @@ def main():
   rm_rf(os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor', 'download',
                      'libchromiumcontent'))
 
-  run_script('bootstrap.py', ['--dev'])
+  target_arch = 'x64'
+  if os.environ.has_key('TARGET_ARCH'):
+    target_arch = os.environ['TARGET_ARCH']
+
+  run_script('bootstrap.py', ['--dev', '--target_arch=' + target_arch])
 
   run_script('cpplint.py')
   if sys.platform != 'win32':