This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Use this function to create pagingation links that are styleable with Twitter Bootstrap | |
function paging() { | |
global $wp_query; | |
$total_pages = $wp_query->max_num_pages; | |
if ($total_pages > 1){ | |
$current_page = max(1, get_query_var('paged')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Update the apt repos. | |
sudo apt-get update | |
# Install required dev packages. | |
sudo apt-get install -y language-pack-en | |
sudo apt-get install -y python3-dev python-pip python-dev | |
# Install virtualenvwrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PIP_DOWNLOAD_CACHE=/var/lib/jenkins/pip-cache | |
export AQUIPAGO_ENVIRONMENT=testing | |
make | |
env/bin/pip install -r requirements/base.txt --download-cache=/var/lib/jenkins/pip-cache --use-mirrors --timeout 1 | |
env/bin/pip install -r requirements/project.txt --download-cache=/var/lib/jenkins/pip-cache --use-mirrors --timeout 1 | |
env/bin/python runtests.py || : | |
env/bin/pylint --rcfile=.pylintrc aquipago --ignore=test > reports/pylint.txt || : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## in /etc/salt/master.d/pillars.conf | |
pillar_roots: | |
base: | |
- /srv/pillar | |
- /srv/private/pillar |
NewerOlder