-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from al4/master
Orlo 0.4.0
- Loading branch information
Showing
44 changed files
with
681 additions
and
809 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
include README.md | ||
recursive-include orlo/migrations * |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ Vagrant.configure(2) do |config| | |
end | ||
|
||
config.vm.provision "shell", inline: <<-SHELL | ||
echo 'en_GB.UTF-8 UTF-8' | tee -a /etc/locale.gen | ||
sudo localedef -i en_GB -f UTF-8 en_GB.UTF-8 | ||
sudo locale-gen en_GB.UTF-8 | ||
sudo sed -i 's/us.archive.ubuntu.com/nl.archive.ubuntu.com/g' /etc/apt/sources.list | ||
|
@@ -28,6 +29,7 @@ Vagrant.configure(2) do |config| | |
dh-systemd \ | ||
git-buildpackage \ | ||
postgresql-client \ | ||
libpq-dev \ | ||
mysql-client \ | ||
python-all-dev \ | ||
python-dev \ | ||
|
@@ -49,12 +51,8 @@ Vagrant.configure(2) do |config| | |
libsasl2-dev \ | ||
libssl-dev \ | ||
# Updating build tooling can help | ||
sudo pip install --upgrade \ | ||
pip \ | ||
setuptools \ | ||
stdeb \ | ||
virtualenv \ | ||
sudo pip install --upgrade pip setuptools | ||
sudo pip install --upgrade stdeb virtualenv | ||
wget -P /tmp/ \ | ||
'http://launchpadlibrarian.net/291737817/dh-virtualenv_1.0-1_all.deb' | ||
|
@@ -66,36 +64,30 @@ Vagrant.configure(2) do |config| | |
source /home/vagrant/virtualenv/orlo/bin/activate | ||
echo "source ~/virtualenv/orlo/bin/activate" >> /home/vagrant/.profile | ||
pip install -r /vagrant/orlo/requirements.txt | ||
pip install -r /vagrant/orlo/requirements_testing.txt | ||
pip install --upgrade pip setuptools | ||
cd /vagrant/orlo | ||
pip install .[test] | ||
pip install -r /vagrant/orlo/docs/requirements.txt | ||
python setup.py develop | ||
mkdir -p /etc/orlo /var/log/orlo | ||
# echo -e "[db]\nuri=postgres://orlo:[email protected]" > /etc/orlo/orlo.ini | ||
chown -R vagrant:root /etc/orlo /var/log/orlo | ||
chown -R vagrant:vagrant /home/vagrant/virtualenv | ||
chown vagrant:root /vagrant | ||
# Create the database | ||
#cd /vagrant/orlo | ||
#python create_db.py | ||
#python setup.py develop | ||
SHELL | ||
|
||
config.vm.define "jessie" do |jessie| | ||
jessie.vm.box = "bento/debian-8.6" | ||
jessie.vm.box = "bento/debian-8.7" | ||
jessie.vm.network "forwarded_port", guest: 5000, host: 5000 | ||
jessie.vm.network "private_network", ip: "192.168.57.20" | ||
jessie.vm.provision "shell", inline: <<-SHELL | ||
SHELL | ||
end | ||
|
||
# config.vm.define "trusty" do |trusty| | ||
# trusty.vm.box = "bento/ubuntu-14.04" | ||
# trusty.vm.network "forwarded_port", guest: 5000, host: 5100 | ||
# trusty.vm.network "private_network", ip: "192.168.57.10" | ||
# end | ||
|
||
config.vm.define "xenial" do |xenial| | ||
xenial.vm.box = "bento/ubuntu-16.04" | ||
xenial.vm.network "forwarded_port", guest: 5000, host: 5200 | ||
|
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,56 @@ | ||
orlo (0.3.1-3) UNRELEASED; urgency=medium | ||
|
||
[ Alex Forbes ] | ||
* Fix exec path | ||
|
||
[ vagrant ] | ||
|
||
-- Alex Forbes <[email protected]> Thu, 24 Nov 2016 10:09:28 +0000 | ||
|
||
orlo (0.3.1-2) jessie; urgency=medium | ||
|
||
[ Alex Forbes ] | ||
* Fix path to gunicorn in systemd unit | ||
|
||
[ vagrant ] | ||
|
||
-- Alex Forbes <[email protected]> Wed, 23 Nov 2016 18:02:42 +0000 | ||
|
||
orlo (0.3.1-1) jessie; urgency=medium | ||
|
||
[ Alex Forbes ] | ||
* Fix test | ||
* Rename __init__ to test_base and update imports | ||
* Create multiple vagrant machines for testing | ||
* Add jessie and xenial vagrant boxes for build/testing | ||
* Run python setup.py clean in make clean | ||
* Change deb install location to /opt/venvs | ||
* Add initial tox.ini | ||
* Default internal config should be sqlite | ||
* Configure tests to use postgres in vagrant | ||
* Remove trusty vm, fix IP | ||
* Use main repos, upgrade dh-virtualenv, fix missing \ | ||
* Add db clients and restart postgres | ||
* Small doc fix | ||
* Remove dependency on passwd file by mocking the verification function | ||
* Use tox to run tests in travis | ||
* mock has moved under py3 | ||
* Set test database to localhost if running in Travis | ||
* Set posargs for tox and maxfail for pytest | ||
* Pass travis env car through to tox | ||
* Rename DeployTest as LiveDbTest, move to test_base | ||
* Add stress test | ||
* Add liveserver config to app, refactor db test with classmethods | ||
* Close the session in our json streamer to avoid leaking connections | ||
* Test refactor | ||
* Fix test failure caused by previous tests not clearing db connection | ||
* Bump version to 0.3.1 | ||
* Fix locale in vagrantfile (for me anyway 😁), use tox for testing | ||
|
||
[ vagrant ] | ||
|
||
-- Alex Forbes <[email protected]> Wed, 23 Nov 2016 17:39:48 +0000 | ||
|
||
orlo (0.3.1) trusty; urgency=medium | ||
|
||
* Add support for filtering by reference | ||
|
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.