Skip to content

Commit b457131

Browse files
author
Vladimir Kotal
committed
refactor Python package installation, install for Wercker too
1 parent a9830d8 commit b457131

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

dev/before_install

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
66
echo "cannot update"
77
exit 1
88
fi
9-
sudo apt-get install -qq cvs git mercurial cssc bzr subversion monotone rcs rcs-blame python3 python3.4-venv python3-pip pep8 nodejs
9+
10+
sudo apt-get install -qq cvs git mercurial cssc bzr subversion monotone rcs rcs-blame python3 python3.4-venv python3-pip nodejs
1011
if [[ $? != 0 ]]; then
1112
echo "cannot install extra packages"
1213
exit 1
1314
fi
15+
1416
sudo ./dev/install-bitkeeper.sh
15-
sudo pip3 install --upgrade pip
16-
sudo pip3 install flake8 pylint
17+
sudo ./dev/install-python-packages
1718
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
1819
brew update
1920
brew install ctags cvs node
2021
brew upgrade python
21-
pip3 install pep8 flake8 virtualenv pylint
22+
./dev/install-python-packages.sh
2223
fi
2324

2425
sudo ./dev/install-universal_ctags.sh

dev/install-python-packages.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
pip3 install --upgrade pip
4+
pip3 install pep8 flake8 virtualenv pylint

wercker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ box: openjdk:8-jdk
1212
build:
1313
steps:
1414
- install-packages:
15-
packages: sudo maven cvs git mercurial cssc bzr subversion monotone rcs pep8 flake8 autoconf python3 python3-venv build-essential pkg-config
15+
packages: sudo maven cvs git mercurial cssc bzr subversion monotone rcs autoconf python3 python3-venv build-essential pkg-config
1616
- script:
1717
name: Install Universal ctags
1818
code: ./dev/install-universal_ctags.sh
@@ -22,6 +22,9 @@ build:
2222
/usr/sbin/groupadd -g 1000 foobar
2323
/usr/sbin/useradd -u 1000 -g 1000 -s /bin/bash -m foobar
2424
chown -R foobar:foobar $WERCKER_ROOT
25+
- script:
26+
name: Install Python packages
27+
code: ./dev/install-python-packages.sh
2528
- wercker/[email protected]:
2629
goals: install
2730
cache_repo: true

0 commit comments

Comments
 (0)