Unverified Commit a46d93a1 authored by Mark Beamer Jr's avatar Mark Beamer Jr
Browse files

ci test

parent 3f869aaf
......@@ -34,7 +34,12 @@ echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-
docker-compose pull
if [ -d persist ]; then rm -r persist; fi
docker-compose up -d
sleep 15
printf 'waiting for internal apis...'
until $(curl --output /dev/null --silent --head --fail http://localhost:15400); do
printf '.'
sleep 1
echo "successfully started..."
#Data Setup for test
#Add a ytsync user
......@@ -58,3 +63,6 @@ mysql -u lbry -plbry -D lbry -h "" -P 15500 -e "$ADDYTCHANNEL"
# Execute the test!
./../bin/ytsync --channelID="UCCyr5j8akeu9j4Q7urV0Lqw" #Force channel intended...just in case. This channel lines up with the api container
# Assert the status
status=$(mysql -u lbry -plbry -ss -D lbry -h "" -P 15500 -e 'SELECT status FROM youtube_data WHERE id=1')
if [ $status != "synced" ]; then exit 1; fi;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment