Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Commit

Permalink
Add license to fakeS3 gem script (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderberry authored and StareIntoTheBeard committed Sep 18, 2018
1 parent a1ceb18 commit ddb4fbf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .env-sample
Expand Up @@ -35,4 +35,5 @@ export GOOGLE_ANALYTICS_IMPRESSION_PROPERTY_ID=
export APPSIGNAL_APP_NAME=
export APPSIGNAL_APP_ENV=
export APPSIGNAL_PUSH_API_KEY=
export CDN_HOST=d2dgtjbaa79whh.cloudfront.net
export CDN_HOST=d2dgtjbaa79whh.cloudfront.net
export FAKE_S3_TOKEN=1234567890
9 changes: 4 additions & 5 deletions .travis.yml
Expand Up @@ -7,23 +7,22 @@ otp_release:
- 21.0

addons:
postgresql: '9.6'
postgresql: "9.6"

services:
- postgresql
- redis-server

before_script:
- gem install fakes3
- fakes3 -r $HOME/.s3bucket -p 4567 &
- fakes3 -r $HOME/.s3bucket -p 4567 --license $FAKE_S3_TOKEN &

script:
- MIX_ENV=test mix format --check-formatted
- MIX_ENV=test mix credo list --ignore readability,design,refactor
- MIX_ENV=test mix do compile, coveralls.json

after_script:
— kill $(pgrep -f fakes3)
after_script: — kill $(pgrep -f fakes3)

after_success:
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion bin/run_tests
@@ -1,5 +1,5 @@
#!/bin/bash
trap 'kill %1; kill %2' SIGINT
fakes3 -r /tmp/fakes3_root -p 4567| sed -e 's/^/[FakeS3] /' & mix test | sed -e 's/^/[Mix Test] /'
fakes3 -r /tmp/fakes3_root -p 4567 --license $FAKE_S3_TOKEN | sed -e 's/^/[FakeS3] /' & mix test | sed -e 's/^/[Mix Test] /'
kill -9 %1
trap - SIGINT

0 comments on commit ddb4fbf

Please sign in to comment.