-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from lifechurch/cm/adds_ci
Cm/adds ci
- Loading branch information
Showing
2 changed files
with
44 additions
and
39 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,25 +1,30 @@ | ||
language: ruby | ||
language: node_js | ||
node_js: | ||
- "7" | ||
|
||
script: echo "Running tests against $(node -v) ..." | ||
|
||
install: "npm install" | ||
stages: | ||
- test | ||
- name: deploy | ||
if: branch = master | ||
cache: | ||
- bundler | ||
- node_modules | ||
# - name: npm release | ||
# if: branch = master | ||
|
||
before_script: | ||
- bundle exec rake assets:precompile | ||
cache: | ||
directories: | ||
- "node_modules" | ||
|
||
test: | ||
script: npm test | ||
deploy: | ||
provider: heroku | ||
api_key: | ||
secure: $HEROKU_AUTH_TOKEN | ||
app: validstate | ||
jobs: | ||
include: | ||
- stage: test | ||
name: "Unit Tests" | ||
script: npm test | ||
# Save for later in case we want to add this in | ||
# - stage: npm release | ||
# script: echo "Building distrubtion ..." && npm build | ||
# script: echo "Deploying to npm ..." | ||
# deploy: | ||
# provider: npm | ||
# api_key: "$NPM_API_KEY" | ||
# on: | ||
# tags: true | ||
# skip_cleanup: true |
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