Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get basic tests and release 1.0.0 #131

Open
wants to merge 72 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
64f15f7
Create .travis.yml
jonpugh Jun 25, 2017
9d9241b
Fixing script for travis.
jonpugh Jun 25, 2017
d82d7f4
Don't forget to turn on docker!
jonpugh Jun 25, 2017
4093ef6
Add an app and an environment.
jonpugh Jun 25, 2017
0b90ec9
Add a description, its required
jonpugh Jun 25, 2017
ac9eb9c
Update .travis.yml
jonpugh Jun 25, 2017
0e82d7b
Test environment creation options in app:add.
jonpugh Jun 25, 2017
b2e046e
Separate app:add and environment:add commands.
jonpugh Jun 25, 2017
dee65b0
bin/terra, not terra.
jonpugh Jun 25, 2017
1aff382
Add argument for path of environment source files.
jonpugh Jun 29, 2017
91afbbf
Use http for cloning.
jonpugh Jun 29, 2017
21886db
Add drush as a dependency.
jonpugh Jun 29, 2017
d6f41cf
Adding symlink to vendor/drush/drush/drush
jonpugh Jun 29, 2017
e193961
Add alias for terra and drush.
jonpugh Jun 29, 2017
7612667
Use symlinks to make executable.
jonpugh Jun 29, 2017
59a1f61
Fix symlinks
jonpugh Jun 29, 2017
44ce8fc
Fix symlinks
jonpugh Jun 29, 2017
821cddc
Set SSH config: StrictHostKeyChecking no
jonpugh Jun 29, 2017
ab45cd1
Echo the ssh config file.
jonpugh Jun 29, 2017
cdd6c96
Fixing the SSH config generation.
jonpugh Jun 29, 2017
1fca531
Generate an SSH key so we can use drush via SSH.
jonpugh Jun 29, 2017
5771d57
Wrong folder.
jonpugh Jun 29, 2017
3bdbdfe
Output docker compose file, trying to figure out what's wrong with ss…
jonpugh Jun 29, 2017
b28f9e9
list ssh folder.
jonpugh Jun 29, 2017
885cabb
Bad filename.
jonpugh Jun 29, 2017
d6d91e9
Use lowercase "z" flags in docker-compose volumes.
jonpugh Jun 29, 2017
22de1df
Adding terra/drupal Dockerfile directly to terra-cli project.
jonpugh Jun 30, 2017
2eaa3e7
Fixing permissions issues caused by running as $TERRA_USER: Install s…
jonpugh Jun 30, 2017
928b10b
- Adding our own apache vhost config file so we can configure environ…
jonpugh Jun 30, 2017
8690e87
Refactoring docker-compose generation:
jonpugh Jun 30, 2017
c734627
Adding new prepareSystem command to run docker build.
jonpugh Jun 30, 2017
ea7358d
Change default docker compose image to terra/drupal:local
jonpugh Jun 30, 2017
20db938
Output messages if docker build fails or passes.
jonpugh Jun 30, 2017
d212469
Add launching of URL proxy container to prepare:system command.
jonpugh Jun 30, 2017
25b8506
Add a check for the terra-nginx-proxy container, and offer to kill & …
jonpugh Jun 30, 2017
c8ffe49
Add `terra prepare:system -y` to the travis yml file.
jonpugh Jun 30, 2017
df86de4
Better message about UID.
jonpugh Jun 30, 2017
cf4203e
More description of the VIRTUAL_HOST thing.
jonpugh Jun 30, 2017
e968342
Curl the site, see if we got something.
jonpugh Jun 30, 2017
515dc67
Get docker logs in travis test.
jonpugh Jun 30, 2017
c3936c3
Add composer to Dockerfile.
jonpugh Jun 30, 2017
4ec6916
Adding Drush to Dockerfile.
jonpugh Jun 30, 2017
4790e57
Add drushrc config in entrypoint since that is when we know the virtu…
jonpugh Jun 30, 2017
a05c88b
Fixing URI to VIRTUAL_HOSTNAME
jonpugh Jun 30, 2017
59b762e
Overwrite drushrc.php in entrypoint.
jonpugh Jun 30, 2017
11d22f2
output logs of nginx proxy.
jonpugh Jun 30, 2017
0a0c051
Get port of container in order to CURL, until the nginx-proxy starts …
jonpugh Jun 30, 2017
7ea2332
Echo Port and assign URL correctly
jonpugh Jun 30, 2017
5796c15
Add mysql-client and php5-mysql to Drupal container.
jonpugh Jul 1, 2017
4265f73
Merge branch 'master' into tests
jonpugh Aug 30, 2017
4792169
Adding site install to travis tests.
jonpugh Aug 30, 2017
fb59d55
Merge branch 'tests' of github.com:terra-ops/terra-cli into tests
jonpugh Aug 30, 2017
e174b17
Merge branch 'master' into tests
jonpugh Aug 31, 2017
afdc440
Add nginx network in prepare system command.
jonpugh Aug 31, 2017
4f755e8
Cleaner text.
jonpugh Aug 31, 2017
0242364
Put input and output as command class properties.
jonpugh Aug 31, 2017
393255c
Removing code that asks the user to remove the proxy container then r…
jonpugh Aug 31, 2017
c4f1c25
Removing "url proxy" command in favor of prepare system.
jonpugh Aug 31, 2017
7f32dea
Removing url proxy command.
jonpugh Aug 31, 2017
f2452fb
Removing URL proxy command in favor of prepare:system command.
jonpugh Aug 31, 2017
e17da16
Adding drush container Dockerfile and entrypoint script to terra-cli …
jonpugh Aug 31, 2017
6ab6782
Make sure to set shell of drush user.
jonpugh Aug 31, 2017
48bbdc4
Build a terra/drush:local container in the 'prepare:system' command.
jonpugh Aug 31, 2017
b88517d
Merge remote-tracking branch 'origin/tests' into tests
jonpugh Aug 31, 2017
aeedcf6
Set a nice hostname for the containers.
jonpugh Aug 31, 2017
deb1c4b
Let's play it safe and use php5 for now.
jonpugh Aug 31, 2017
8031eea
Improve composer installation method based on https://getcomposer.org…
jonpugh Oct 16, 2017
34b265e
bump to php 5.6
jonpugh Oct 16, 2017
f14d13b
Add bcmath extension to default container.
jonpugh Oct 16, 2017
4ee5a49
include ZIP extension.
jonpugh Oct 16, 2017
b18b250
Add --user option to terra e:sh command.
jonpugh Oct 27, 2017
88c232c
Add a default php.ini and copy it into the terra/drupal container.
jonpugh Oct 31, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
language: php
php:
- '5.5' # Ubuntu Trusty default
- '5.6' # MacOS default
- '7.0'
- '7.1'

services:
- docker

install:
- composer install
- sudo ln -s $PWD/bin/terra /usr/local/bin/terra
- sudo ln -s $PWD/vendor/drush/drush/drush /usr/local/bin/drush
- ls -la
- echo "StrictHostKeyChecking no" >> ~/.ssh/config
- ssh-keygen -t rsa -N "" -f $HOME/.ssh/id_rsa
- ls -la ~/.ssh

script:
- terra
- drush
- terra prepare:system -y
- docker logs terra-nginx-proxy
- bin/terra app:add drupal http://github.com/terra-ops/example-drupal.git --description='sample app' --host=local.computer -n
- bin/terra e:a drupal demo demo -n
- cat ~/.terra/environments/drupal/drupal-demo/docker-compose.yml

- bin/terra e:e drupal demo
- bin/terra status
- cd ~/.terra/environments/drupal/drupal-demo/
- docker-compose logs
- PORT=`docker inspect --format '{{ (index (index .NetworkSettings.Ports "80/tcp") 0).HostPort }}' drupaldemo_app_1`
- echo $PORT
- URL="http://localhost:$PORT"
- echo $URL
- curl $URL
- docker-compose exec app drush site-install -y
- curl $URL
- docker-compose exec app drush status
- docker-compose exec app drush uli
1 change: 1 addition & 0 deletions bin/drush
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"cpliakas/git-wrapper": "~1.4",
"teqneers/php-stream-wrapper-for-git": "~1.0",
"videlalvaro/php-amqplib": "2.2.*",
"guzzlehttp/guzzle": "~6.0"
"guzzlehttp/guzzle": "~6.0",
"drush/drush": "^8.1"
},
"authors": [
{
Expand Down
Loading