Skip to content

Commit

Permalink
Try fixing travis (#8085)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlazypanda authored Jun 26, 2020
1 parent 34a2f37 commit f79bb61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cache:

git:
depth: false

env:
global:
- CI=true
Expand All @@ -32,20 +32,24 @@ before_install:
- sudo unzip chromedriver_linux64.zip -d /usr/local/bin/
- sudo chmod +x /usr/local/bin/chromedriver
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- yes | gem update --system --force
- gem install bundler

install:
- rm -rf test/reports
- cp config/database.yml.example config/database.yml
- cp db/schema.rb.example db/schema.rb
- bundle config set path 'vendor/.bundle/'
- rm -rf vendor/.bundle/
- bundle install
- gem list
- if [ $RAILS_ENV != 'production' ]; then
yarn check || yarn install;
fi
- mysql -e "CREATE DATABASE plots;";
- bundle exec rake db:schema:load
- bundle exec rake db:migrate
- if [ "$TRAVIS_PULL_REQUEST" == "true" ]; then
- if [ "$TRAVIS_PULL_REQUEST" == "true" ]; then
gem install danger danger-junit google-cloud-storage;
fi
- echo "$GOOGLE_APPLICATION_CREDENTIALS_JSON" > /tmp/credentials.json # needs to be a path to a json file, so we shuffle...
Expand All @@ -60,7 +64,7 @@ jobs:
script: bundle exec rails test test/integration
- name: "System Tests"
script: bundle exec rails test:system

after_script:
- echo -e '<?xml version="1.0" encoding="UTF-8"?>' > output.xml;
- tail -n +2 -q ./test/reports/TEST*.xml >> output.xml
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -693,4 +693,4 @@ RUBY VERSION
ruby 2.4.4p296

BUNDLED WITH
1.17.3
2.1.4

0 comments on commit f79bb61

Please sign in to comment.