Skip to content

Commit 46552ff

Browse files
chore: Add basic test for fastboot (#3970)
1 parent 6566097 commit 46552ff

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ script:
2828
- yarn lint:scss
2929
- COVERAGE=true yarn test
3030
- ROOT_URL=open-event-frontend ember build -prod
31+
- bash scripts/test_fastboot.sh
3132

3233
after_success:
3334
- 'bash <(curl -s https://codecov.io/bash)'

scripts/test_fastboot.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
node ./scripts/fastboot-server.js &
4+
sleep 5
5+
FASTBOOT_PID=$!
6+
STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:4000/)
7+
kill -9 $FASTBOOT_PID
8+
9+
[ 200 = $STATUS_CODE ]

0 commit comments

Comments
 (0)