Merge pull request #5 from rscohn2/feature/32bit

travis-ci for 32/64 x linux/osx x clang/gcc
This commit is contained in:
Mark Charney
2016-12-19 08:53:58 -05:00
committed by GitHub
3 changed files with 35 additions and 4 deletions

25
.travis.yml Normal file
View File

@@ -0,0 +1,25 @@
language: c
addons:
apt:
packages:
# 32 bit support
- gcc-multilib
os:
- linux
- osx
# test gcc and clang
compiler:
- gcc
- clang
env:
- host_cpu=ia32
- host_cpu=x86-64
script:
- pip install --user https://github.com/intelxed/mbuild/zipball/master
- mkdir build
- cd build && ../mfile.py host_cpu=$host_cpu test

View File

@@ -22,8 +22,11 @@ import os
import sys
import subprocess
import find_dir
sys.path.append(find_dir.find_dir('mbuild'))
import mbuild
try:
import mbuild
except:
sys.path.append(find_dir.find_dir('mbuild'))
import mbuild
def _warn(s):
sys.stderr.write("ERROR:" + s + "\n")

View File

@@ -25,8 +25,11 @@ import textwrap
import find_dir
import math
sys.path.append(find_dir.find_dir('mbuild'))
import mbuild
try:
import mbuild
except:
sys.path.append(find_dir.find_dir('mbuild'))
import mbuild
def graph_it(lst):
import numpy as np