-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-integration-tests
- Loading branch information
Showing
73 changed files
with
1,251 additions
and
349 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 |
---|---|---|
@@ -1,31 +1,61 @@ | ||
language: groovy | ||
sudo: false | ||
|
||
jdk: | ||
- oraclejdk8 | ||
- oraclejdk8 | ||
php: | ||
- 5.6 | ||
env: | ||
- TERM=dumb; DIR=transmart-core-db-tests; PREPARE=assemble; TEST=check | ||
- TERM=dumb; DIR=transmart-data; PREINSTALL="createVars setupPostgres"; INSTALL=downloadTransmartETL; TEST=dataloadingTest | ||
|
||
addons: | ||
postgres: 9.4 | ||
|
||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/ | ||
cache: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
- $HOME/.m2/ | ||
- $HOME/.gradle/caches | ||
- $HOME/.gradle/wrapper | ||
- $HOME/.m2 | ||
- $HOME/pg | ||
|
||
before_install: | ||
- gradle --version | ||
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 3375DA21 | ||
- echo deb http://apt.thehyve.net/internal/ trusty main | sudo tee /etc/apt/sources.list.d/hyve_internal.list | ||
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E5267A6C | ||
- echo deb http://ppa.launchpad.net/ondrej/php5/ubuntu precise main | sudo tee /etc/apt/sources.list.d/ondrej_php5.list | ||
- sudo apt-get -qq update | ||
- apt-cache search php | ||
- sudo apt-get install -y tk-dev php5-cli php5-json | ||
- php --version | ||
- echo $DIR; cd $DIR | ||
- PWD=`pwd` | ||
- echo $PWD | ||
- ([ -z "$PREINSTALL" ] && echo "Skipping preinstall.") || (echo $PREINSTALL; sudo -i -- sh -c "cd $PWD; gradle $PREINSTALL") | ||
- cd - | ||
|
||
install: | ||
- echo $DIR; cd $DIR | ||
- ([ -z "$INSTALL" ] && echo "Skipping install.") || (echo $INSTALL; gradle $INSTALL) | ||
- cd - | ||
|
||
before_script: | ||
- cd transmart-core-db-tests | ||
- ./gradlew --console=plain assemble | ||
- echo $DIR; cd $DIR | ||
- ([ -z "$PREPARE" ] && echo "Skipping prepare.") || (echo $PREPARE; gradle $PREPARE) | ||
- cd - | ||
|
||
script: | ||
- cd transmart-core-db-tests | ||
- ./gradlew --console=plain --stacktrace check | ||
- echo $DIR; cd $DIR | ||
- ([ -z "$TEST" ] && echo "Skipping test.") || (echo $TEST; gradle --stacktrace $TEST) | ||
- cd - | ||
|
||
notifications: | ||
hipchat: | ||
rooms: | ||
secure: "rNPPKSL1o8R71YcD7T+jDFTFfSFoXO/YKCubqwP5TXFL+OtqEwZOrkpKSpyN+Ap6Uxk85TBgat8Bur/WkTWXcq6HruyhfKkKea96ZVVSWjZWhKHqqTLvMeABb1uh6JxpXAc/5Cm3K5/yTHBFFiFSyOemuEl88bqeqJjDSzIxvOLrdLhnYWVlo3SJcUwAab0IKab8MpbZUEa6eFB5+MmCQfwjDZBr9Qn7UGfQWQdEp801sHGzU2i58uwF7+RVYhUyZtT9428FmPhxAS2EgW663JpzNQYpVCws02UW8aCgu2SCWWtUKwk3dy/6hSc5UoxWIIKaIpPbre+SA5JYeB7RwIad7N6/eDHdb/ByN1lOP6/pAEzPSnajxJrU/AnohhIwgcPaZ3aHbrqq8RrGPy1sNwFTKvFzBkVu5aWKR7JMgKuBq0LXv4iq1qBJw1s+xK4CHNoOAESZG2a0wo/cmzK+C2OzKdTnjN25RoHwXBOS7AzJtdtqpU8PaESZ0X1BxT19nD3RALiCfS/054SU3mfswhVAdo6rVhHDgGNxqRflgZIVmDsYjBRZ4TR4jDnUhc+s9ILo1eI/imq7tQZ6rFeQrydCu4p2U4LrFAWu7E0QwTbsfnSs5KN7Fah1xhS+6xttOuqbAmPQXEeLKSkk6B9Q7G/R0VHAKdaNkLweA0ZzATM=" | ||
on_success: change | ||
on_failure: always | ||
on_failure: change | ||
|
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
23 changes: 0 additions & 23 deletions
23
Rmodules/grails-app/conf/org/transmartproject/rmodules/AuditLogFilters.groovy
This file was deleted.
Oops, something went wrong.
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
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
29 changes: 29 additions & 0 deletions
29
Rmodules/grails-app/controllers/rmodules/AnalysisFilesInterceptor.groovy
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,29 @@ | ||
package rmodules | ||
|
||
import org.transmartproject.core.users.User | ||
|
||
class AnalysisFilesInterceptor { | ||
|
||
def accessLogService | ||
User currentUserBean | ||
|
||
AnalysisFilesInterceptor() { | ||
match(controller: 'analysisFiles', action:'download') | ||
} | ||
|
||
boolean before() { true } | ||
|
||
boolean after() { | ||
if (params.path.toLowerCase().endsWith('.zip')) { | ||
def ip = request.getHeader('X-FORWARDED-FOR') ?: request.remoteAddr | ||
accessLogService.report(currentUserBean, 'Raw R Data Export', | ||
eventMessage: "User (IP: ${ip}) downloaded ${params.path} for ${params.analysisName}", | ||
requestURL: "${request.forwardURI}${request.queryString ? '?' + request.queryString : ''}") | ||
} | ||
true | ||
} | ||
|
||
void afterView() { | ||
// no-op | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ntrollers/rdc/rmodules/UrlMappings.groovy → ...p/controllers/rmodules/UrlMappings.groovy
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package rdc.rmodules | ||
package rmodules | ||
|
||
class UrlMappings { | ||
|
||
|
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
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
Binary file not shown.
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,6 @@ | ||
#Tue Sep 27 10:49:32 CEST 2016 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-bin.zip |
Oops, something went wrong.