Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop' into feature/#216-infobox
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickSkowronek committed Apr 24, 2018
2 parents 3ce3cab + bab1760 commit c6aa629
Show file tree
Hide file tree
Showing 121 changed files with 7,816 additions and 4,120 deletions.
2 changes: 1 addition & 1 deletion .docker/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8.9.0
FROM node:8.11.1

WORKDIR /usr/src/app

Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ script:
- npm run e2e # run end-to-end-tests
- sed -i 's/$TRAVIS_COMMIT/'$TRAVIS_COMMIT'/' src/app/shared/services/raven-error-handler.service.ts
- cd ../..
- .travis/build-fe.sh # build in prod mode
- travis_wait 30 .travis/build-fe.sh # build in prod mode

after_script:
# send required files to coveralls.io
Expand Down
2 changes: 1 addition & 1 deletion .travis/apidoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if [[ "$TRAVIS_BRANCH" == "master" ]] || [[ -n "$TRAVIS_TAG" ]]; then
git commit -m "Travis build: $TRAVIS_BUILD_NUMBER" &>/dev/null

if [[ -n "$TRAVIS_TAG" ]]; then
echo "+ git tag" ; git tag $TRAVIS_TAG
echo "+ git tag" ; git tag -a $TRAVIS_TAG -m "Release $TRAVIS_TAG"
else
echo -e "${YELLOW}+ skipping: git tag - not tagged build${NC}"
fi
Expand Down
Empty file added CHANGELOG.md
Empty file.
4 changes: 2 additions & 2 deletions api/fixtures/FixtureLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class FixtureLoader {
(<any>mongoose).Promise = global.Promise;

if (!mongoose.connection.readyState) {
mongoose.connect(config.database, {useMongoClient: true});
mongoose.connect(config.database);
}
}

Expand Down Expand Up @@ -78,7 +78,7 @@ export class FixtureLoader {

for (const file of files) {
if (!fs.existsSync(file.path) && fs.existsSync(this.binaryDirectory + file.alias)) {
fs.copyFileSync(this.binaryDirectory + file.alias, file.path)
fs.copyFileSync(this.binaryDirectory + file.alias, file.path);
}
}
}));
Expand Down
4 changes: 2 additions & 2 deletions api/fixtures/FixtureUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class FixtureUtils {
lastName: stud.profile.lastName,
uid: stud.uid,
courseId: new ObjectId(course._id)
}
};
});
}

Expand Down Expand Up @@ -175,7 +175,7 @@ export class FixtureUtils {
const shuffeledArray = this.shuffleArray(array);
const count = this.getRandomNumber(min, max);
const start = this.getRandomNumber(0, shuffeledArray.length - count);
return shuffeledArray.slice(start, start + count)
return shuffeledArray.slice(start, start + count);
}
}

Expand Down
23 changes: 23 additions & 0 deletions api/fixtures/courses/Access-key-test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "Access key test",
"description": "This course is used to test the access key course enroll type.",
"active": true,
"whitelist": [],
"enrollType": "accesskey",
"accessKey": "accessKey1234",
"hasAccessKey": true,
"lectures": [
{
"name": "Documentation",
"description": "Documents the course fixture.",
"units": [
{
"name": "What is course fixture for?",
"description": "",
"markdown": "To test the 'accesskey' enrollType.",
"__t": "free-text"
}
]
}
]
}
Loading

0 comments on commit c6aa629

Please sign in to comment.