diff --git a/.gitignore b/.gitignore index 9dbdcde65..ad72397f0 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ coverage !jest.config.js components +solid-crud-tests diff --git a/.travis.yml b/.travis.yml index 9bd91241b..d2ef0b0fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ script: - npm run test:unit - npm run test:integration - npm run test:deploy + - sh test/surface/run-solid-test-suite.sh jobs: allow_failures: diff --git a/test/system/run-solid-test-suite.sh b/test/system/run-solid-test-suite.sh new file mode 100755 index 000000000..df503e3db --- /dev/null +++ b/test/system/run-solid-test-suite.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e +npm start & +PID=$! +git clone https://github.com/solid/solid-crud-tests +cd solid-crud-tests +git checkout v0.1.1 +npm install +export SERVER_ROOT=http://localhost:3000 +export ALICE_WEBID_DOC=$SERVER_ROOT/profile.ttl +export ALICE_WEBID=$ALICE_WEBID#me +curl -X PUT $ALICE_WEBID_DOC -d '<#me> .' +npm run jest +kill $PID diff --git a/tsconfig.json b/tsconfig.json index 9520cceee..8d9af8b11 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,6 +19,7 @@ "test/**/*.ts" ], "exclude": [ - "node_modules" + "node_modules", + "test/system" ] }