Skip to content

Commit 820a976

Browse files
authored
Merge branch 'develop' into bugFixMySQLdb
2 parents 7bf51bb + a473a5d commit 820a976

File tree

230 files changed

+37665
-6292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+37665
-6292
lines changed
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
SCHEMA_DIR=/tmp/schema
4+
5+
mysql_exec=( mysql -uroot -p${MYSQL_ROOT_PASSWORD} )
6+
7+
if [[ -z "$BASSA_DB_NAME" ]]
8+
then
9+
echo "BASSA_DB_NAME is not defined."
10+
exit 1
11+
fi
12+
13+
echo "Creating database ${BASSA_DB_NAME}..."
14+
echo "DROP DATABASE IF EXISTS ${BASSA_DB_NAME}; CREATE DATABASE ${BASSA_DB_NAME};" | "${mysql_exec[@]}" &> /dev/null
15+
16+
mysql_exec_in_db=("${mysql_exec[@]}" "${BASSA_DB_NAME}")
17+
18+
for sql_file in $SCHEMA_DIR/*
19+
do
20+
sql_file_name=$(basename $sql_file)
21+
echo "Dumping file ${sql_file_name} to ${BASSA_DB_NAME}..."
22+
"${mysql_exec_in_db[@]}" < ${sql_file} &> /dev/null
23+
done
24+
25+
echo "Initial schema created!"

.gitattributes

+203
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
## GITATTRIBUTES
2+
#
3+
# Details per file setting:
4+
# text These files should be normalized (i.e. convert CRLF to LF).
5+
# binary These files are binary and should be left untouched.
6+
#
7+
# Note that binary is a macro for -text -diff.
8+
######################################################################
9+
10+
## AUTO-DETECT
11+
## Handle line endings automatically for files detected as
12+
## text and leave all files detected as binary untouched.
13+
## This will handle all files NOT defined below.
14+
* text=auto
15+
16+
# Source files
17+
# ============
18+
*.pxd text
19+
*.py text
20+
*.py3 text
21+
*.pyw text
22+
*.pyx text
23+
24+
# Binary files
25+
# ============
26+
*.db binary
27+
*.p binary
28+
*.pkl binary
29+
*.pyc binary
30+
*.pyd binary
31+
*.pyo binary
32+
33+
## SOURCE CODE
34+
*.bat text eol=crlf
35+
*.coffee text
36+
*.css text
37+
*.htm text
38+
*.html text
39+
*.inc text
40+
*.ini text
41+
*.js text
42+
*.json text
43+
*.jsx text
44+
*.less text
45+
*.od text
46+
*.onlydata text
47+
*.php text
48+
*.pl text
49+
*.py text
50+
*.rb text
51+
*.sass text
52+
*.scm text
53+
*.scss text
54+
*.sh text eol=lf
55+
*.sql text
56+
*.styl text
57+
*.tag text
58+
*.ts text
59+
*.tsx text
60+
*.xml text
61+
*.xhtml text
62+
63+
## DOCKER
64+
*.dockerignore text
65+
Dockerfile text
66+
67+
## DOCUMENTATION
68+
*.markdown text
69+
*.md text
70+
*.mdwn text
71+
*.mdown text
72+
*.mkd text
73+
*.mkdn text
74+
*.mdtxt text
75+
*.mdtext text
76+
*.txt text
77+
AUTHORS text
78+
CHANGELOG text
79+
CHANGES text
80+
CONTRIBUTING text
81+
COPYING text
82+
copyright text
83+
*COPYRIGHT* text
84+
INSTALL text
85+
license text
86+
LICENSE text
87+
NEWS text
88+
readme text
89+
*README* text
90+
TODO text
91+
92+
## TEMPLATES
93+
*.dot text
94+
*.ejs text
95+
*.haml text
96+
*.handlebars text
97+
*.hbs text
98+
*.hbt text
99+
*.jade text
100+
*.latte text
101+
*.mustache text
102+
*.njk text
103+
*.phtml text
104+
*.tmpl text
105+
*.tpl text
106+
*.twig text
107+
108+
## LINTERS
109+
.csslintrc text
110+
.eslintrc text
111+
.htmlhintrc text
112+
.jscsrc text
113+
.jshintrc text
114+
.jshintignore text
115+
.stylelintrc text
116+
117+
## CONFIGS
118+
*.bowerrc text
119+
*.cnf text
120+
*.conf text
121+
*.config text
122+
.browserslistrc text
123+
.editorconfig text
124+
.gitattributes text
125+
.gitconfig text
126+
.htaccess text
127+
*.npmignore text
128+
*.yaml text
129+
*.yml text
130+
browserslist text
131+
Makefile text
132+
makefile text
133+
134+
## GRAPHICS
135+
*.ai binary
136+
*.bmp binary
137+
*.eps binary
138+
*.gif binary
139+
*.ico binary
140+
*.jng binary
141+
*.jp2 binary
142+
*.jpg binary
143+
*.jpeg binary
144+
*.jpx binary
145+
*.jxr binary
146+
*.pdf binary
147+
*.png binary
148+
*.psb binary
149+
*.psd binary
150+
*.svg text
151+
*.svgz binary
152+
*.tif binary
153+
*.tiff binary
154+
*.wbmp binary
155+
*.webp binary
156+
157+
## AUDIO
158+
*.kar binary
159+
*.m4a binary
160+
*.mid binary
161+
*.midi binary
162+
*.mp3 binary
163+
*.ogg binary
164+
*.ra binary
165+
166+
## VIDEO
167+
*.3gpp binary
168+
*.3gp binary
169+
*.as binary
170+
*.asf binary
171+
*.asx binary
172+
*.fla binary
173+
*.flv binary
174+
*.m4v binary
175+
*.mng binary
176+
*.mov binary
177+
*.mp4 binary
178+
*.mpeg binary
179+
*.mpg binary
180+
*.ogv binary
181+
*.swc binary
182+
*.swf binary
183+
*.webm binary
184+
185+
## ARCHIVES
186+
*.7z binary
187+
*.gz binary
188+
*.jar binary
189+
*.rar binary
190+
*.tar binary
191+
*.zip binary
192+
193+
## FONTS
194+
*.ttf binary
195+
*.eot binary
196+
*.otf binary
197+
*.woff binary
198+
*.woff2 binary
199+
200+
## EXECUTABLES
201+
*.pyc binary
202+
203+

.github/ISSUE_TEMPLATE.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,36 @@
11
<!--- Provide a general summary of the issue in the Title above -->
22

3-
## Expected Behavior
3+
#### Expected Behavior
44
<!--- If you're describing a bug, tell us what should happen -->
55
<!--- If you're suggesting a change/improvement, tell us how it should work -->
66

7-
## Current Behavior
7+
#### Current Behavior
88
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
99
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
1010

11-
## Possible Solution
11+
#### Possible Solution
1212
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
1313
<!--- or ideas how to implement the addition or change -->
1414

15-
## Steps to Reproduce (for bugs)
15+
#### Steps to Reproduce (for bugs)
1616
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
1717
<!--- reproduce this bug. Include code to reproduce, if relevant -->
1818
1.
1919
2.
2020
3.
2121
4.
2222

23-
## Context
23+
#### Context
2424
<!--- How has this issue affected you? What are you trying to accomplish? -->
2525
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
2626

27-
## Your Environment
27+
#### Your Environment
2828
<!--- Include as many relevant details about the environment you experienced the bug in -->
2929
* Version used:
3030
* Environment name and version (e.g. Chrome 39, node.js 5.4):
3131
* Operating System and version (desktop or mobile):
3232
* Link to your project:
33+
34+
35+
# Pull Requests to this issue
36+
If you are planning to create a PR for this issue, please make sure you first discuss with the maintainers of the project about ths issue well and get the 'Go' from them first.

.github/PULL_REQUEST_TEMPLATE.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
<!--- Provide a general summary of your changes in the Title above -->
22

3-
## Description
3+
#### Description
44
<!--- Describe your changes in detail -->
55

6-
## Related Issue
6+
#### Related Issue
77
<!--- This project only accepts pull requests related to open issues -->
88
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
99
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
1010
<!--- Please link to the issue here: -->
1111

12-
## Motivation and Context
12+
#### Motivation and Context
1313
<!--- Why is this change required? What problem does it solve? -->
1414

15-
## How Has This Been Tested?
15+
#### How Has This Been Tested?
1616
<!--- Please describe in detail how you tested your changes. -->
1717
<!--- Include details of your testing environment, and the tests you ran to -->
1818
<!--- see how your change affects other areas of the code, etc. -->
1919

20-
## Screenshots (In case of UI changes):
20+
#### Screenshots (In case of UI changes):
2121

22-
## Types of changes
22+
#### Types of changes
2323
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
2424
- [ ] Bug fix (non-breaking change which fixes an issue)
2525
- [ ] New feature (non-breaking change which adds functionality)
2626
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
2727

28-
## Checklist:
28+
#### Checklist:
2929
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
3030
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
3131
- [ ] My code follows the code style of this project.

.gitignore

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
# Created by https://www.gitignore.io/api/vim,node,python,sublimetext,visualstudiocode
33

4+
### Mac Junk ###
5+
.DS_Store
6+
47
### Node ###
58
# Logs
69
logs
@@ -42,7 +45,7 @@ jspm_packages/
4245

4346
*.log
4447
components/core/debug-server.log
45-
downloads/
48+
4649

4750
# UI
4851
ui/dist
@@ -226,4 +229,9 @@ tags
226229
!.vscode/extensions.json
227230
.history
228231

232+
### IDEs
233+
234+
.idea/*
235+
.vscode/*
236+
229237
# End of https://www.gitignore.io/api/vim,node,python,sublimetext,visualstudiocode

.travis.yml

+13-18
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,29 @@
11
dist: trusty
2-
language: node_js
3-
node_js:
4-
- "6.10.0"
5-
python:
6-
- "3.6"
2+
language: minimal
3+
74
sudo: required
85

96
services:
107
- docker
118

12-
cache:
13-
directories:
14-
- ui/node_modules
15-
169
before_install:
17-
- export CHROME_BIN=chromium-browser
18-
- export DISPLAY=:99.0
19-
- sh -e /etc/init.d/xvfb start
20-
10+
- |
11+
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|(.png)|(.)|^(LICENSE)|^(docs)|^(robots.txt)|^(package-list-yum)|^(package-list-pacman)|^(package-list-dnf)|^(package-list-brew)|^(package-list-aptget)|^(humans.txt)|^(docker-compose.yml)|^(docker-compose.dev.yml)|^(bassa)|^(.gitignore)|^(.gitattributes)|^(bassa-ui.yaml)|^(bassa-ingress.yaml)|^(bassa-api.yaml)|^(deploy_rds.sh)|^(rds-dev.json)|^(template.json)|^(setup-mysql.sh)|^(setup-database.sh)|^(create-schema.sh)|^(Bassa.sql)'
12+
then
13+
echo "Files changed not related to dockerfile, therefore travis build ends"
14+
exit
15+
fi
16+
2117
script:
22-
- ./setup.sh
23-
- cd ui && npm install && npm test
24-
- cd $TRAVIS_BUILD_DIR
25-
- cd components/core && python setup.py test
26-
- docker build --build-arg VCS_REF=`git rev-parse --short HEAD` --build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` -t scoreucsc/bassa .
18+
- docker build --build-arg VCS_REF=`git rev-parse --short HEAD` --build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` -t scoreucsc/bassa-ui ui
19+
- docker build --build-arg VCS_REF=`git rev-parse --short HEAD` --build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` -t scoreucsc/bassa components/core
2720

2821
after_success:
2922
- if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then
3023
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
3124
docker push scoreucsc/bassa;
3225
curl -X POST 'https://hooks.microbadger.com/images/scoreucsc/bassa/Wbi5zehDMooS3ri2bgC8LETGGuQ=';
26+
docker push scoreucsc/bassa-ui;
27+
curl -X POST 'https://hooks.microbadger.com/images/scoreucsc/bassa-ui/et6pa2aJq-tEvwFoW-PL8ixNxr0=';
3328
fi
3429

File renamed without changes.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
652652
If the program does terminal interaction, make it output a short
653653
notice like this when it starts in an interactive mode:
654654

655-
{project} Copyright (C) {year} {fullname}
655+
Bassa Project Copyright (C) 2019 , ScoreLab
656656
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657657
This is free software, and you are welcome to redistribute it
658658
under certain conditions; type `show c' for details.

0 commit comments

Comments
 (0)