Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
Added travis
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Aug 4, 2017
1 parent 85aa6d8 commit 36d57e8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: php
php:
- 7.0
sudo: false
script:
- ./build.sh
deploy:
provider: releases
api_key:
secure: ycDcA3ha+OKii2n7p6tBHNIYUrpY9R9mwJyVcKeKfLtbxsQScFpxOFHcyk1rdGXN6CopbwlFZfOYi6NYvTmPTxeGJOs4fc6206lKTW5M2TkMvtLGcuDqlqQjuyJNoFHAsNZqLkeMFq5Zi7quNL6ryC5T4z8gBbBavrUb0NPZ0F7o73h3d9YE3MtTM4Z3mY/Df1Sd1iBbs4z1YMleW16TZgqVrOD7+WGWMprFFhHXnZX4DWrVqwZ7vZxZwFVazWWUJviOoHYaoEEK6oUQ40g31OouAhg79fuhB4JkvDinRzIgP65v33kYzQIPepWJ9CjyfmdwRCvTvJ3Sf6KERhB1lyBJeixZLNOEHrFUnBkfPZuc3t/VnpP5rK7VqdsL/e6+5ixvJVq4PE1+etKmKNRoQpf69+68ryrk6ncmMIPkQTZwA2IIduDwr0ayqhw2OpgHWtgbi6Y14tzRGGp8Cggh5KSzbovX1AF54/bYme9HOfogQvHP+EiNgT3I3J9O8gIlegf1mJGbhp5ZHk1XTfbI/DlR07NSewJMOeelCYoRB++F/MI/NdRaxCOA+Nx45TqG240iSzzOSd1CLetvmpmPRCrMwIz+CuSSV34uEMBswbQI7DTPVu3N/PGH+QthdkixE/8mkhPbwF6P6hJLOAD3ZiEtNGWhwKRCIBvsQeaBmuc=
file: WhoopsForShopware-*.zip
file_glob: true
on:
tags: true
14 changes: 14 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

commit=$1
if [ -z ${commit} ]; then
commit=$(git tag | tail -n 1)
if [ -z ${commit} ]; then
commit="master";
fi
fi

# Build new release
mkdir -p WhoopsForShopware
git archive ${commit} | tar -x -C WhoopsForShopware
zip -r WhoopsForShopware-${commit}.zip WhoopsForShopware

0 comments on commit 36d57e8

Please sign in to comment.