Commit 873a8f58 by Dane Springmeyer

travis: fix 32 bit build by ensuring i386 libs are installed before testing

parent e564bb34
......@@ -28,12 +28,13 @@ script:
- export NVER=`node -v`
- if [[ "$NVER" != v0.6* ]]; then wget http://nodejs.org/dist/${NVER}/node-${NVER}-linux-x86.tar.gz; fi
- if [[ "$NVER" != v0.6* ]]; then tar xf node-${NVER}-linux-x86.tar.gz; fi
- if [[ "$NVER" != v0.6* ]]; then export PATH=$(pwd)/node-${NVER}-linux-x86/bin:$PATH && ls $(pwd)/node-${NVER}-linux-x86/bin; fi
- if [[ "$NVER" != v0.6* ]]; then npm install --build-from-source --target_arch=ia32; fi
- if [[ "$NVER" != v0.6* ]]; then export PATH=$(pwd)/node-${NVER}-linux-x86/bin:$PATH; fi
- if [[ "$NVER" != v0.6* ]]; then sudo apt-get -y install binutils:i386 cpp:i386 gcc-4.6:i386 g++-4.6:i386 libstdc++6-4.6-dev:i386 | true; fi
- if [[ "$NVER" != v0.6* ]]; then CC=gcc-4.6 CXX=g++-4.6 npm install --build-from-source; fi
- if [[ "$NVER" != v0.6* ]]; then ldd lib/binding/*/*/*node; fi
- if [[ "$NVER" != v0.6* ]]; then npm test; fi
- if [[ "$NVER" != v0.6* ]]; then make clean; fi
- if [[ "$NVER" != v0.6* ]]; then sudo apt-get -y install libsqlite3-dev:i386 binutils:i386 cpp:i386 gcc-4.6:i386 g++-4.6:i386 libstdc++6-4.6-dev:i386 | true; fi
- if [[ "$NVER" != v0.6* ]]; then CC=gcc-4.6 CXX=g++-4.6 npm install --build-from-source --target_arch=ia32 --sqlite=/usr; fi
- if [[ "$NVER" != v0.6* ]]; then sudo apt-get -y install libsqlite3-dev:i386; fi
- if [[ "$NVER" != v0.6* ]]; then CC=gcc-4.6 CXX=g++-4.6 npm install --build-from-source --sqlite=/usr; fi
- if [[ "$NVER" != v0.6* ]]; then ldd lib/binding/*/*/*node; fi
- if [[ "$NVER" != v0.6* ]]; then npm test; fi
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment