Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
fd652411
Commit
fd652411
authored
Nov 12, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Share environment setup between CIs
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
efefbb40
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
.travis.yml
.travis.yml
+1
-3
ci/setup-env
ci/setup-env
+11
-0
shippable.yml
shippable.yml
+1
-5
No files found.
.travis.yml
View file @
fd652411
...
...
@@ -31,9 +31,7 @@ install:
# create databases
before_script
:
-
timestamp.sh before_script
-
mysql -e 'CREATE DATABASE weblate CHARACTER SET utf8 COLLATE utf8_general_ci;'
-
psql -c 'create database weblate;' -U postgres
-
if [ -n "$DO_SELENIUM" ] ; then curl -L https://gist.githubusercontent.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash ; fi
-
./ci/setup-env
-
echo -e "[server]\nmax_allowed_packet=64M\nwait_timeout=28800" | sudo tee -a /etc/mysql/conf.d/weblate.cnf
-
sudo service mysql restart
# commands to run tests
...
...
ci/setup-env
0 → 100755
View file @
fd652411
#!/bin/sh
# Environment setup
set
-e
set
-x
mysql
-e
'DROP DATABASE IF EXISTS weblate;'
mysql
-e
'CREATE DATABASE weblate CHARACTER SET utf8 COLLATE utf8_general_ci;'
psql
-c
'DROP DATABASE IF EXISTS weblate;'
-U
postgres
psql
-c
'CREATE DATABASE weblate;'
-U
postgres
if
[
-n
"
$DO_SELENIUM
"
]
;
then
curl
-L
https://gist.githubusercontent.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
fi
shippable.yml
View file @
fd652411
...
...
@@ -23,11 +23,7 @@ install:
-
pip install -r requirements-optional.txt -r ci/requirements-shippable.txt -r ci/requirements-${TRAVIS_DATABASE:-sqlite}.txt
# create databases
before_script
:
-
mysql -e 'DROP DATABASE IF EXISTS weblate;'
-
mysql -e 'CREATE DATABASE weblate CHARACTER SET utf8 COLLATE utf8_general_ci;'
-
psql -c 'DROP DATABASE IF EXISTS weblate;' -U postgres
-
psql -c 'CREATE DATABASE weblate;' -U postgres
-
if [ -n "$DO_SELENIUM" ] ; then curl -L https://gist.githubusercontent.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash ; fi
-
./ci/setup-env
-
mkdir -p shippable/testresults
-
mkdir -p shippable/codecoverage
# commands to run tests
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment