Skip to content

Commit

Permalink
Travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
jcraigk committed Oct 5, 2023
1 parent ef4c8c0 commit 3b16e23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ before_install:
- psql -c 'create database phishin_test;' -U postgres
- gem update --system --no-document
- gem install bundler --no-document
- RAILS_ENV=test bundle exec bin/rails assets:precompile
install: bundle install
script:
- bundle exec rubocop
- bundle exec rails assets:precompile
- bundle exec rspec
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"scripts": {
"dokku": {
"predeploy": "bundle exec rails db:migrate && bundle exec rake assets:precompile",
"predeploy": "bundle exec rails db:migrate && bundle exec rails assets:precompile",
"postdeploy": "if [ -n \"$DISCORD_WEBHOOK_URL\" ]; then JSON_STRING=\"{\\\"content\\\":\\\"[$GIT_REV](https://github.com/jcraigk/phishin/commit/$GIT_REV) successfully deployed\\\"}\"; curl -X POST -H 'Content-Type: application/json' --data \"$JSON_STRING\" $DISCORD_WEBHOOK_URL; fi"
}
}
Expand Down

0 comments on commit 3b16e23

Please sign in to comment.