-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add 'headless' gem for xvfb manipulation - Add GitLab CI build file - Update `selenium-webdriver`gem to prevent random Chrome failure
- Loading branch information
1 parent
f36ff8a
commit a9f85a6
Showing
5 changed files
with
61 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
image: "complat/ubuntu-runner" | ||
|
||
services: | ||
- postgres:9.3-alpine | ||
|
||
variables: | ||
POSTGRES_DB: chemotion_test | ||
POSTGRES_USER: chemotion_test | ||
POSTGRES_PASSWORD: "123456" | ||
|
||
cache: | ||
untracked: true | ||
key: "$CI_BUILD_REF_NAME" | ||
paths: | ||
- node_modules/ | ||
- public/ | ||
- .bundle/ | ||
|
||
# stages: | ||
# - rspec | ||
# - npm | ||
|
||
test: | ||
# stage: rspec | ||
script: | ||
- cp config/database.yml.gitlab config/database.yml | ||
- /bin/bash -l -c "gem install bundle && bundle install && source ~/.nvm/nvm.sh && | ||
npm install && bundle exec rake db:test:prepare && bundle exec rake && npm test" | ||
# npm: | ||
# stage: npm | ||
# script: | ||
# - /bin/bash -l -c "source ~/.nvm/nvm.sh && npm install && npm test" |
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
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,15 @@ | ||
development: | ||
adapter: postgresql | ||
encoding: unicode | ||
database: chemotion_dev | ||
pool: 5 | ||
username: chemotion_dev | ||
password: 123456 | ||
test: | ||
adapter: postgresql | ||
encoding: unicode | ||
database: chemotion_test | ||
username: chemotion_test | ||
pool: 5 | ||
password: 123456 | ||
host: postgres |
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