This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 138
/
Copy path.travis.yml
52 lines (52 loc) · 1.98 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: ruby
cache: bundler
dist: trusty
bundler_args: "-j4 --without development production --quiet"
notifications:
webhooks:
secure: AziQTqGNQCCe/673UZy3bW0XB0oGywiEAyxygTWs2Cki0lqNldgELlPg+eC+CgvCJpMXRY6PLS/MXWeu4eR/6iONnBo+So8l9wJSZasxrCwVWqI9UFZYaMXXzFTGlz2JmBJ7JigW5zxL/Y3ukqu+wjA3MytT8N5tuNdR5SYqy40=
slack:
secure: pEbxQLQakbPpZkU2p+FdHxSOw7BlXHrOMdJlh8g7fK2oGiOMrpU0wbRUHUxNWzxTnkqWmwq37cIFXPGLel3yWkDzDO0+EuBBFPyoiQ2THxC8/pdpIO3I6jAuH7Zqra4jIdfHWw0UkN4Z+Yqnc+Y90rf9SC7mRGucbcy5aCGEIkY=
before_install:
- sudo apt-get update
- sudo apt-get install chromium-chromedriver
- gem update --system
- gem --version
- gem install bundler -v 1.17.3
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- cp config/database.yml.travis config/database.yml
- bundle exec rails db:create db:schema:load RAILS_ENV=test
- npm install -g jshint
- "export PATH=$PATH:/usr/lib/chromium-browser/"
script:
- bundle exec rubocop
- jshint app/assets/javascripts
- bundle exec rspec
deploy:
- provider: heroku
api_key:
secure: QGw8fTa9Gbf99f50M+E/7NMglqwoiE7WGObekUFH4ABsUzapGVHrU6WN4T4BKfRtjkZDpLgeEDtGeU2ZbLhOHMU53Z6iYTz24bvhA1VKKY8IEmiYWWTHPOFJAFaZL7GRToJxMNGofRfHagXPESZpFHGKFxdMNtgaxmTH/noy9K4=
app: rgsoc-teams-staging
run:
- rails db:migrate
- restart
on:
repo: rails-girls-summer-of-code/rgsoc-teams
- provider: heroku
api_key:
secure: MUUTDu1EwDQiQwpL3gYnKO/ET4csokhsCFTSILpjxLzTLMm3XmCK90OZ2yoFULi+rk7nhWzCNE+Dr9ChXjUM8/BOczqkgms28n5XsTm/SAV6q2BDUR0YGm8myDyN1ts5vcqgCvyVLCkjMw/nnwRCzTMD7QUXQtyASJOr9WJvu1I=
app: rgsoc-teams-production
run:
- rails db:migrate
- restart
on:
repo: rails-girls-summer-of-code/rgsoc-teams
addons:
postgresql: '9.5'
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
branches:
only: [master, staging]