diff options
-rwxr-xr-x | .travis.sh | 2 | ||||
-rw-r--r-- | .travis.yml | 2 | ||||
-rwxr-xr-x | setup.sh | 9 |
3 files changed, 7 insertions, 6 deletions
@@ -18,7 +18,7 @@ case "$1" in mv *.rpyc unrpyc ;; install) - MAKEOPTS="-j`nproc` -s" + MAKEOPTS="-j`nproc` ${MAKEOPTS}" sudo apt-get install -q libtheora-dev libvpx-dev libx264-dev yasm diff --git a/.travis.yml b/.travis.yml index 4d4b5df..129e01a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: c python: "3.3" node_js: "0.11" -env: MINIMAL=1 CFLAGS="-O2 -march=native -pipe" CXXFLAGS="-O2 -march=native -pipe" +env: MINIMAL=1 CFLAGS="-O2 -march=native -pipe" CXXFLAGS="-O2 -march=native -pipe" MAKEOPTS="-s" before_install: ./.travis.sh before_install install: ./.travis.sh install script: ./setup.sh @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash -if [ -z $MAKEOPTS ]; then - MAKEOPTS="-j`nproc`" - echo "No MAKEOPTS specified, setting $MAKEOPTS automatically." +if ! grep -q -- -j <<< "$MAKEOPTS"; then + MAKEOPTS="-j`nproc` $MAKEOPTS" + echo "No -j detected, setting $MAKEOPTS automatically." printf "%sGiB free RAM, approx 1GiB/core required (depending on ffmpeg settings)." "$(free -gt | tail -n 1 | awk '{print $4}')" fi @@ -11,6 +11,7 @@ set -e -x cd $(dirname $0) cd unrpyc +# silence build failure make $MAKEOPTS install || true cd .. |