This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use TEST_SUITE env var to run ruby/js specs
- Loading branch information
Showing
4 changed files
with
34 additions
and
26 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 |
---|---|---|
@@ -1,26 +1,15 @@ | ||
matrix: | ||
include: | ||
- name: "Node.js: 12" | ||
language: node_js | ||
cache: yarn | ||
node_js: | ||
- '12' # current stable | ||
script: yarn test --runInBand | ||
- name: "Ruby: 2.5.8" | ||
language: ruby | ||
cache: bundler | ||
rvm: | ||
- 2.5.8 | ||
addons: | ||
postgresql: '10' | ||
install: bin/setup | ||
after_script: bin/ci/after_script | ||
- name: "Ruby: 2.6.6" | ||
language: ruby | ||
rvm: | ||
- 2.6.6 | ||
cache: bundler | ||
addons: | ||
postgresql: '10' | ||
install: bin/setup | ||
after_script: bin/ci/after_script | ||
--- | ||
language: ruby | ||
cache: | ||
- bundler | ||
- yarn | ||
addons: | ||
postgresql: '10' | ||
env: | ||
matrix: | ||
- TEST_SUITE=javascript | ||
- TEST_SUITE=rails | ||
before_install: source bin/ci/before_install.sh | ||
install: source bin/ci/install.sh | ||
script: source bin/ci/script.sh | ||
after_script: bin/ci/after_script |
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,5 @@ | ||
if [ "$TEST_SUITE" = "javascript" ] | ||
then | ||
source ~/.nvm/nvm.sh | ||
nvm install 12 | ||
fi |
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,6 @@ | ||
if [ "$TEST_SUITE" = "javascript" ] | ||
then | ||
npm install | ||
else | ||
bin/setup | ||
fi |
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,8 @@ | ||
#!/bin/bash | ||
|
||
if [ "$TEST_SUITE" = "javascript" ] | ||
then | ||
yarn test --runInBand | ||
else | ||
bundle exec rake | ||
fi |