feat(nightlies): Add ability to build from nightlies (#211)
This patch adds the optional IMAGE env variable to set the base image and adds nightly builds to Travis CI.
This commit is contained in:
parent
792e2cc961
commit
9177155c79
@ -1,3 +1,4 @@
|
||||
IMAGE=sentry:9.1
|
||||
# Run `docker-compose run web config generate-secret-key`
|
||||
# to get the SENTRY_SECRET_KEY value.
|
||||
SENTRY_SECRET_KEY=
|
||||
SENTRY_SECRET_KEY=
|
@ -1,6 +1,10 @@
|
||||
language: bash
|
||||
services: docker
|
||||
|
||||
env:
|
||||
- IMAGE=sentry:9.1
|
||||
- IMAGE=getsentry/sentry:git
|
||||
|
||||
script:
|
||||
- ./install.sh
|
||||
- docker-compose run --rm web createuser --superuser --email test@sentry.io --password test123TEST
|
||||
|
@ -1 +1,2 @@
|
||||
FROM sentry:9.1-onbuild
|
||||
ARG IMAGE
|
||||
FROM ${IMAGE}-onbuild
|
||||
|
@ -10,7 +10,10 @@ version: '3.4'
|
||||
|
||||
x-defaults: &defaults
|
||||
restart: unless-stopped
|
||||
build: .
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
IMAGE: ${IMAGE}
|
||||
depends_on:
|
||||
- redis
|
||||
- postgres
|
||||
|
8
test.sh
8
test.sh
@ -5,9 +5,9 @@ TEST_USER='test@sentry.io'
|
||||
TEST_PASS='test123TEST'
|
||||
COOKIE_FILE=$(mktemp)
|
||||
declare -a TEST_STRINGS=(
|
||||
'"isAuthenticated":true,'
|
||||
'"username":"test@sentry.io",'
|
||||
'"isSuperuser":true,'
|
||||
'"isAuthenticated":true'
|
||||
'"username":"test@sentry.io"'
|
||||
'"isSuperuser":true'
|
||||
)
|
||||
|
||||
INITIAL_AUTH_REDIRECT=$(curl -sL -o /dev/null http://localhost:9000 -w %{url_effective})
|
||||
@ -28,6 +28,6 @@ TEST_RESULT=0
|
||||
for i in "${TEST_STRINGS[@]}"
|
||||
do
|
||||
echo "Testing '$i'..."
|
||||
echo "$LOGIN_RESPONSE" | grep "$i" >& /dev/null
|
||||
echo "$LOGIN_RESPONSE" | grep "$i[,}]" >& /dev/null
|
||||
echo "Pass."
|
||||
done
|
||||
|
Reference in New Issue
Block a user