Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
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
gitlab-ce
Commits
d104a3e1
Commit
d104a3e1
authored
Sep 22, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add development environment database setup CI test
parent
9636b081
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
.gitlab-ci.yml
.gitlab-ci.yml
+16
-6
No files found.
.gitlab-ci.yml
View file @
d104a3e1
...
...
@@ -12,7 +12,7 @@ variables:
RSPEC_RETRY_RETRY_COUNT
:
"
3"
RAILS_ENV
:
"
test"
SIMPLECOV
:
"
true"
USE
_DB
:
"
true"
SETUP
_DB
:
"
true"
USE_BUNDLE_INSTALL
:
"
true"
GIT_DEPTH
:
"
20"
PHANTOMJS_VERSION
:
"
2.1.1"
...
...
@@ -23,7 +23,7 @@ before_script:
-
bundle --version
-
'
[
"$USE_BUNDLE_INSTALL"
!=
"true"
]
||
retry
bundle
install
--without
postgres
production
--jobs
$(nproc)
"${FLAGS[@]}"'
-
retry gem install knapsack
-
'
[
"$
USE
_DB"
!=
"true"
]
||
bundle
exec
rake
db:drop
db:create
db:schema:load
db:migrate'
-
'
[
"$
SETUP
_DB"
!=
"true"
]
||
bundle
exec
rake
db:drop
db:create
db:schema:load
db:migrate'
stages
:
-
prepare
...
...
@@ -35,7 +35,7 @@ stages:
.knapsack-state
:
&knapsack-state
services
:
[]
variables
:
USE
_DB
:
"
false"
SETUP
_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
false"
cache
:
key
:
"
knapsack"
...
...
@@ -196,7 +196,7 @@ spinach 9 10 ruby21: *spinach-knapsack-ruby21
.ruby-static-analysis
:
&ruby-static-analysis
variables
:
SIMPLECOV
:
"
false"
USE
_DB
:
"
false"
SETUP
_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
true"
.exec
:
&exec
...
...
@@ -224,6 +224,16 @@ rake db:migrate:reset:
script
:
-
rake db:migrate:reset
rake dev:setup:
stage
:
test
<<
:
*use-db
variables
:
SETUP_DB
:
"
false"
RAILS_ENV
:
development
script
:
-
mkdir -p /home/git/repositories
-
rake dev:setup
teaspoon
:
stage
:
test
<<
:
*use-db
...
...
@@ -272,7 +282,7 @@ coverage:
stage
:
post-test
services
:
[]
variables
:
USE
_DB
:
"
false"
SETUP
_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
true"
script
:
-
bundle exec scripts/merge-simplecov
...
...
@@ -288,7 +298,7 @@ coverage:
notify:slack:
stage
:
post-test
variables
:
USE
_DB
:
"
false"
SETUP
_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
false"
script
:
-
./scripts/notify_slack.sh "#builds" "Build on \`$CI_BUILD_REF_NAME\` failed! Commit \`$(git log -1 --oneline)\` See <https://gitlab.com/gitlab-org/$(basename "$PWD")/commit/"$CI_BUILD_REF"/builds>"
...
...
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