Skip to content

Commit

Permalink
Add basic package files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashoka de Wit committed Feb 1, 2017
1 parent 33fe14e commit dcb6153
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor/
composer.lock
52 changes: 52 additions & 0 deletions bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# You can use a Docker image from Docker Hub or your own container
# registry for your build environment.
image: phpunit/phpunit:5.3.3
pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- composer --version
- phpunit --version
- php -v
- php -i | grep xdebug.ini | sed 's/,$//' | xargs rm
- mkdir -p $HOME/.ssh
- chmod 700 $HOME/.ssh
- echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+fkqtDV8tgId6INCumNdpDOT14C3LdiYcVdSKC7om9jIB9KSMzd3+Tq0z5kEl8tWwINAkh5NGmtEd1rp3175TiwQwrncebV9yCWgifC5jENgxIt2XQFFNryYpt10W4KCP9hUXO1IB5IGZQ9+wEDtsX5SVUTRBpovCRwO9iFetSPH7vEVfECe/sxJoq708d5rqydDLHd7fZ6dEBYlkch1IuyjAVxpyEQ2Ny7Xri4FtaJFs57+wrnE1OobN8Fo+eTU/r3LYsGKvw88rk/uHWAONXfvNmRTaxDUGm4ZZJp7gcU/7Kb2Y6BTHi2VHFzT18m43XjbDFEGgasvytnTBfPYF" > $HOME/.ssh/id_rsa.pub
- chmod 600 $HOME/.ssh/id_rsa.pub
- |
cat > $HOME/.ssh/id_rsa << EOT
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAvn5KrQ1fLYCHeiDQrpjXaQzk9eAty3YmHFXUigu6JvYyAfSk
jM3d/k6tM+ZBJfLVsCDQJIeTRprRHda6d9e+U4sEMK53Hm1fcgloInwuYxDYMSLd
l0BRTa8mKbddFuCgj/YVFztSAeSB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
ca9kFUBlGqnmOHZIuOgwDRcCgYEAt2TfvcQ2cxbiWadVVoxEJWSx7ufPhhlgbyJK
nVmgW6f+FHsjfaNnv7pu+DhF6YImT4Q8s3dNBekDVhAz6v1yJSuYigqiW9koKaBy
Grqvj6WvsAVnp1GmcMqW5Bk1y1og6tynGtiqo8DgMqOYG3CMPop4y4kIBGe22eR1
PoYT0NsCgYBPuvksgbmhyO+QxbCFgUG/seB6BwuhX9/jrmbMrTv4MR3fHPNpzWWz
rr+oqUpENbP94j+aSPr4j0FEqaMOVigcLqkUfWisCIZnvzlYahUXcKYvJXoTXaDq
sLitbEppp7wT+k2VybYp8k26flIDBLa+eTDaSxZL+wguMPPi16kpPA==
-----END RSA PRIVATE KEY-----
EOT
- chmod 600 $HOME/.ssh/id_rsa
- echo "Host *\n PubkeyAuthentication yes" > $HOME/.ssh/config
- chmod 600 $HOME/.ssh/config
- echo "bitbucket.org,104.192.143.2 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==" >> /root/.ssh/known_hosts
- echo '{"http-basic":{"composer.mediact.nl":{"username":"mediact","password":"mediact"}}}' > $COMPOSER_HOME/auth.json
- composer install --dev --prefer-dist
- vendor/bin/phpunit
12 changes: 12 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<phpunit bootstrap="vendor/autoload.php">
<testsuites>
<testsuite>
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit dcb6153

Please sign in to comment.