Skip to content

Commit e7900b8

Browse files
Ondřej Surýrkrejci
authored andcommitted
Use apt and homebrew addons in Travis to install packages instead of manual method
1 parent 2d99cc2 commit e7900b8

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.travis.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,30 @@ branches:
4040

4141
addons:
4242
apt:
43+
packages:
44+
- abi-dumper
45+
- abi-compliance-checker
46+
- pkg-config
47+
- w3m
48+
- curl
49+
- valgrind
50+
- libpcre3-dev
51+
- python3-dev
52+
- python3-cffi
53+
- python3-setuptools
54+
- python3-pip
55+
- swig
56+
update: true
57+
homebrew:
58+
packages:
59+
- curl
4360
update: true
4461

4562
before_install:
46-
- if [ "$DEPLOY_BUILD" = "TRUE" ]; then sudo apt-get -y install abi-dumper abi-compliance-checker pkg-config w3m; fi
4763
- git clone git://git.cryptomilk.org/projects/cmocka.git
4864
- cd cmocka && mkdir build && cd build
4965
- cmake .. && make -j2 && sudo make install
5066
- cd ../..
51-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
52-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; sudo apt-get install -y valgrind libpcre3-dev python3-dev swig; fi
5367
- if [ "$DEPLOY_BUILD" = "TRUE" ]; then pip3 install --user codecov==2.0.22; export CFLAGS="-coverage"; fi
5468

5569
script:

0 commit comments

Comments
 (0)