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`
|
# Run `docker-compose run web config generate-secret-key`
|
||||||
# to get the SENTRY_SECRET_KEY value.
|
# to get the SENTRY_SECRET_KEY value.
|
||||||
SENTRY_SECRET_KEY=
|
SENTRY_SECRET_KEY=
|
@ -1,6 +1,10 @@
|
|||||||
language: bash
|
language: bash
|
||||||
services: docker
|
services: docker
|
||||||
|
|
||||||
|
env:
|
||||||
|
- IMAGE=sentry:9.1
|
||||||
|
- IMAGE=getsentry/sentry:git
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./install.sh
|
- ./install.sh
|
||||||
- docker-compose run --rm web createuser --superuser --email test@sentry.io --password test123TEST
|
- 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
|
x-defaults: &defaults
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
args:
|
||||||
|
IMAGE: ${IMAGE}
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- postgres
|
- postgres
|
||||||
|
8
test.sh
8
test.sh
@ -5,9 +5,9 @@ TEST_USER='test@sentry.io'
|
|||||||
TEST_PASS='test123TEST'
|
TEST_PASS='test123TEST'
|
||||||
COOKIE_FILE=$(mktemp)
|
COOKIE_FILE=$(mktemp)
|
||||||
declare -a TEST_STRINGS=(
|
declare -a TEST_STRINGS=(
|
||||||
'"isAuthenticated":true,'
|
'"isAuthenticated":true'
|
||||||
'"username":"test@sentry.io",'
|
'"username":"test@sentry.io"'
|
||||||
'"isSuperuser":true,'
|
'"isSuperuser":true'
|
||||||
)
|
)
|
||||||
|
|
||||||
INITIAL_AUTH_REDIRECT=$(curl -sL -o /dev/null http://localhost:9000 -w %{url_effective})
|
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[@]}"
|
for i in "${TEST_STRINGS[@]}"
|
||||||
do
|
do
|
||||||
echo "Testing '$i'..."
|
echo "Testing '$i'..."
|
||||||
echo "$LOGIN_RESPONSE" | grep "$i" >& /dev/null
|
echo "$LOGIN_RESPONSE" | grep "$i[,}]" >& /dev/null
|
||||||
echo "Pass."
|
echo "Pass."
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user