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
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
Léo-Paul Géneau
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
Show 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:
...
@@ -12,7 +12,7 @@ variables:
RSPEC_RETRY_RETRY_COUNT
:
"
3"
RSPEC_RETRY_RETRY_COUNT
:
"
3"
RAILS_ENV
:
"
test"
RAILS_ENV
:
"
test"
SIMPLECOV
:
"
true"
SIMPLECOV
:
"
true"
USE
_DB
:
"
true"
SETUP
_DB
:
"
true"
USE_BUNDLE_INSTALL
:
"
true"
USE_BUNDLE_INSTALL
:
"
true"
GIT_DEPTH
:
"
20"
GIT_DEPTH
:
"
20"
PHANTOMJS_VERSION
:
"
2.1.1"
PHANTOMJS_VERSION
:
"
2.1.1"
...
@@ -23,7 +23,7 @@ before_script:
...
@@ -23,7 +23,7 @@ before_script:
-
bundle --version
-
bundle --version
-
'
[
"$USE_BUNDLE_INSTALL"
!=
"true"
]
||
retry
bundle
install
--without
postgres
production
--jobs
$(nproc)
"${FLAGS[@]}"'
-
'
[
"$USE_BUNDLE_INSTALL"
!=
"true"
]
||
retry
bundle
install
--without
postgres
production
--jobs
$(nproc)
"${FLAGS[@]}"'
-
retry gem install knapsack
-
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
:
stages
:
-
prepare
-
prepare
...
@@ -35,7 +35,7 @@ stages:
...
@@ -35,7 +35,7 @@ stages:
.knapsack-state
:
&knapsack-state
.knapsack-state
:
&knapsack-state
services
:
[]
services
:
[]
variables
:
variables
:
USE
_DB
:
"
false"
SETUP
_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
false"
USE_BUNDLE_INSTALL
:
"
false"
cache
:
cache
:
key
:
"
knapsack"
key
:
"
knapsack"
...
@@ -196,7 +196,7 @@ spinach 9 10 ruby21: *spinach-knapsack-ruby21
...
@@ -196,7 +196,7 @@ spinach 9 10 ruby21: *spinach-knapsack-ruby21
.ruby-static-analysis
:
&ruby-static-analysis
.ruby-static-analysis
:
&ruby-static-analysis
variables
:
variables
:
SIMPLECOV
:
"
false"
SIMPLECOV
:
"
false"
USE
_DB
:
"
false"
SETUP
_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
true"
USE_BUNDLE_INSTALL
:
"
true"
.exec
:
&exec
.exec
:
&exec
...
@@ -224,6 +224,16 @@ rake db:migrate:reset:
...
@@ -224,6 +224,16 @@ rake db:migrate:reset:
script
:
script
:
-
rake db:migrate:reset
-
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
:
teaspoon
:
stage
:
test
stage
:
test
<<
:
*use-db
<<
:
*use-db
...
@@ -272,7 +282,7 @@ coverage:
...
@@ -272,7 +282,7 @@ coverage:
stage
:
post-test
stage
:
post-test
services
:
[]
services
:
[]
variables
:
variables
:
USE
_DB
:
"
false"
SETUP
_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
true"
USE_BUNDLE_INSTALL
:
"
true"
script
:
script
:
-
bundle exec scripts/merge-simplecov
-
bundle exec scripts/merge-simplecov
...
@@ -288,7 +298,7 @@ coverage:
...
@@ -288,7 +298,7 @@ coverage:
notify:slack:
notify:slack:
stage
:
post-test
stage
:
post-test
variables
:
variables
:
USE
_DB
:
"
false"
SETUP
_DB
:
"
false"
USE_BUNDLE_INSTALL
:
"
false"
USE_BUNDLE_INSTALL
:
"
false"
script
:
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>"
-
./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