-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 40ff531
Showing
451 changed files
with
56,393 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.env | ||
/.project | ||
/.pydevproject | ||
*.pyc | ||
*.swp | ||
*.swo | ||
*.pid | ||
*# | ||
.#* | ||
*TAGS | ||
.ropeproject | ||
/data | ||
static/* | ||
upload/* | ||
.coverage | ||
cover | ||
celerybeatschedule.db* | ||
env/ | ||
bin/ | ||
lib/ | ||
man/ | ||
src/ | ||
dist/ | ||
build/ | ||
include/ | ||
.idea/ | ||
.vagrant/ | ||
/client/.tern-project | ||
/server/.project | ||
/server/.pydevproject | ||
/server/.settings/org.eclipse.core.resources.prefs | ||
/results/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
language: python | ||
|
||
sudo: false | ||
|
||
env: | ||
- TARGET=unit | ||
- TARGET=server_ldap | ||
- TARGET=server_public_api | ||
- TARGET=e2e_chrome | ||
# - TARGET=e2e_firefox | ||
|
||
python: | ||
- "3.4" | ||
|
||
matrix: | ||
allow_failures: | ||
- env: TARGET=e2e_firefox | ||
|
||
services: | ||
- mongodb | ||
- elasticsearch | ||
- redis-server | ||
|
||
cache: | ||
directories: | ||
- $HOME/.cache/pip | ||
- $HOME/.npm | ||
- $HOME/.cache/bower | ||
|
||
before_install: | ||
- if [ "${TARGET}" = "unit" ] || [ "${TARGET}" != "${TARGET/e2e/}" ]; then | ||
npm install -g grunt-cli bower ; | ||
fi | ||
- if [ "${TARGET}" != "${TARGET/e2e/}" ]; then | ||
pip install requests && | ||
export DISPLAY=:99.0 && | ||
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1920x1080x24 ; | ||
./scripts/get-chrome-url | wget -N --no-verbose -i - && unzip chrome-linux.zip && | ||
export CHROME_BIN=`pwd`/chrome-linux/chrome && | ||
$CHROME_BIN --version ; | ||
fi | ||
|
||
install: | ||
- if [ "${TARGET}" = "unit" ] || [ "${TARGET}" != "${TARGET/server/}" ] || [ "${TARGET}" != "${TARGET/e2e/}" ]; then | ||
cd server && | ||
pip install -r requirements.txt && | ||
cd .. ; | ||
fi | ||
- if [ "${TARGET}" = "unit" ] || [ "${TARGET}" != "${TARGET/e2e/}" ]; then | ||
cd client && npm install && cd .. ; | ||
fi | ||
- if [ "${TARGET}" = "unit" ] || [ "${TARGET}" != "${TARGET/e2e/}" ]; then | ||
cd client && bower install && cd .. ; | ||
fi | ||
- if [ "${TARGET}" = "unit" ]; then | ||
cd server && pip install coveralls==1.0a2 && cd .. ; | ||
fi | ||
|
||
before_script: | ||
- if [ "${TARGET}" != "${TARGET/e2e/}" ]; then | ||
cd server ; | ||
(nohup env SUPERDESK_URL='http://127.0.0.1:5000/api' SUPERDESK_CLIENT_URL='http://127.0.0.1:9000' SUPERDESK_TESTING='True' honcho start & ); | ||
cd ../client ; | ||
grunt build --server='http://127.0.0.1:5000/api' --ws='ws://127.0.0.1:5100' ; | ||
cd dist ; | ||
while [ ! -f index.html ]; do sleep .5; done ; | ||
(nohup python3 -m http.server 9000 & ); | ||
cd ../.. ; | ||
fi | ||
|
||
script: | ||
- if [ "${TARGET}" = "unit" ]; then | ||
cd client && npm test && cd .. ; | ||
cd server && flake8 && cd .. ; | ||
cd server && behave ./features/ --format progress2 --logging-level ERROR && cd .. ; | ||
cd server && nosetests --with-coverage --cover-package=superdesk,apps && cd .. ; | ||
fi | ||
- if [ "${TARGET}" = "server_ldap" ]; then | ||
cd server && | ||
LDAP_SERVER="ldap://sourcefabric.org" LDAP_BASE_FILTER="OU=Superdesk Users,dc=sourcefabric,dc=org" behave ./features/ --format progress2 --logging-level ERROR && | ||
cd .. ; | ||
fi | ||
- if [ "${TARGET}" = "server_public_api" ]; then | ||
cd server && | ||
behave ./publicapi/features/ --format progress2 --logging-level ERROR && | ||
cd .. ; | ||
fi | ||
- if [ "${TARGET}" != "${TARGET/e2e/}" ]; then | ||
cd server && | ||
python3 manage.py users:create -u admin -p admin -e '[email protected]' --admin=true 2>&1 ; | ||
cd ../client && | ||
./node_modules/.bin/webdriver-manager update && | ||
./node_modules/.bin/protractor protractor-conf.js | ||
--stackTrace --verbose | ||
--baseUrl 'http://127.0.0.1:9000' | ||
--params.baseBackendUrl 'http://127.0.0.1:5000/api' | ||
--params.username 'admin' | ||
--params.password 'admin' | ||
--capabilities.browserName "${TARGET/e2e_/}" | ||
; | ||
fi | ||
|
||
after_script: | ||
- killall -9 python | ||
|
||
after_success: | ||
- if [ "${TARGET}" = "unit" ]; then | ||
cd client && grunt coveralls && cd .. ; | ||
cd server && coveralls --merge="../client/coveralls.json" ; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Superdesk-server is written and maintained by Sourcefabric and | ||
various contributors: | ||
|
||
#### The Superdesk team | ||
|
||
- [Petr Jašek](mailto:[email protected]) | ||
- Adrian Magdas | ||
- Anca Farcas | ||
- Ioan Pocol | ||
- Mugur Rus | ||
- Peter Lamut | ||
- Yauhen Kirylau | ||
|
||
#### Contributions | ||
|
||
- Andrew Marwood | ||
- Francesco Occhipinti | ||
- Gabriel Nistor | ||
- Kuna Siva | ||
- Mayur Dhamanwala | ||
- Tolga Akin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Superdesk Core Changelog | ||
========================== | ||
|
||
Version 0.1 | ||
----------- | ||
|
||
Not released yet | ||
|
||
- First public preview release |
Oops, something went wrong.