only use the specific build matrix
use sudo to install mingw toolchains
This commit is contained in:
parent
5ea47a8fa2
commit
100625e317
10
.travis.yml
10
.travis.yml
@ -1,14 +1,4 @@
|
|||||||
language: c
|
language: c
|
||||||
compiler:
|
|
||||||
- clang
|
|
||||||
- gcc
|
|
||||||
os:
|
|
||||||
- linux
|
|
||||||
- osx
|
|
||||||
env:
|
|
||||||
- ARCH=native
|
|
||||||
- ARCH=mingw32
|
|
||||||
- ARCH=mingw64
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- compiler: clang
|
- compiler: clang
|
||||||
|
@ -16,9 +16,11 @@ else
|
|||||||
|
|
||||||
if [ -z $(which $CC) ]; then
|
if [ -z $(which $CC) ]; then
|
||||||
# Update Ubuntu 12.04 with current mingw toolchain
|
# Update Ubuntu 12.04 with current mingw toolchain
|
||||||
apt-get update && apt-get install -y python-software-properties
|
sudo apt-get update
|
||||||
apt-add-repository -y ppa:tobydox/mingw-x-precise
|
sudo apt-get install -y python-software-properties
|
||||||
apt-get update && apt-get install -y $ARCH-x-gcc make
|
sudo apt-add-repository -y ppa:tobydox/mingw-x-precise
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y $ARCH-x-gcc make
|
||||||
export PATH=$PATH:/opt/$ARCH/bin
|
export PATH=$PATH:/opt/$ARCH/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user