10000 Update .travis.yml · HasmikM/pythonnet@ae2056c · GitHub
[go: up one dir, main page]

Skip to content

Commit ae2056c

Browse files
author
denfromufa
authored
Update .travis.yml
1 parent 55b6683 commit ae2056c

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.travis.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,19 @@ matrix:
4343
language: generic
4444
env: TOXENV=py35
4545

46-
before_install:
47-
- sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ trusty main universe"
48-
- sudo apt-get install software-properties-common
49-
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
50-
- echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.2.4.4 main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
51-
- echo "deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
52-
- sudo apt-get update
53-
- sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" install mono-devel mono-complete referenceassemblies-pcl ca-certificates-mono nunit-console
54-
46+
before_install:
47+
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
48+
brew update;
49+
brew install mono
50+
else
51+
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ trusty main universe";
52+
sudo apt-get install software-properties-common;
53+
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF;
54+
echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.2.4.4 main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list;
55+
echo "deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list;
56+
sudo apt-get update;
57+
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" install mono-devel mono-complete referenceassemblies-pcl ca-certificates-mono nunit-console
58+
fi
5559
install:
5660
#- ./.travis/install.sh
< 3C52 /td>
5761
- pip install tox

0 commit comments

Comments
 (0)
0