forked from forem/forem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (53 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
53
sudo: required
language: ruby
cache:
directories:
- vendor/bundle
- node_modules
rvm:
- 2.5.1
addons:
postgresql: '9.6'
chrome: stable
env:
global:
- RAILS_ENV=test
- CC_TEST_REPORTER_ID=f39e060a8b1a558ebd8aff75d5b9760bf1ae98f3f85d628ae28814f3c66438cd
branches:
only:
- master
install:
- bundle install --path vendor/bundle
- bundle exec chromedriver-update
- yarn install
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
before_script:
- cp config/database.yml.travis config/database.yml
- psql -c 'create database travis_ci_test;' -U postgres
script:
- bundle exec rails webpacker:compile
- bundle exec rake db:schema:load
- "./cc-test-reporter before-build"
- bundle exec rspec spec
- "./cc-test-reporter format-coverage -t simplecov -o coverage/codeclimate.simplecov.json"
- yarn test
- "./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.lcov.json"
- "./cc-test-reporter sum-coverage coverage/codeclimate.*.json"
- "./cc-test-reporter upload-coverage"
deploy:
provider: heroku
api_key: "$HEROKU_AUTH_TOKEN"
app:
master: practicaldev
run:
- rake db:migrate
after_deploy:
- bash after_deploy.sh
notifications:
slack:
on_pull_requests: false
on_success: always
rooms:
secure: CbEDtugX9cXV2j+ol9onsF9p//3Ym3fG299JHTb9sC2G2g3NgF3m9z6YZPjEVlqmTM/tG56H1K/m/zFHUkceezFUsz6iQSj7bqpNbvdJIhO5QRL3RnplNWiIdaa/t50meshTi3hx8JKo2R43YwsAY9T9jOQKTkpnOMYWq5UlleKlHeJi2HNmFNi9H1YJjByfF+RZIsaEft00ARqVwT1ebKY3g/AHoVgKuCAhKVYdAjx+5QZjwW9/cUfJG12i46RzGZ+D1Jt9mWOCTP/1TZcRRJyN0111Gh6OxADN3ZI0HFWmwPHWmEzyTShekHeM3T2aVfB+4Y0sY0MVy93MWEfWYSUzoKvjV5R50qWHTwMJuQ/NqnkO/IX1OtTgKNXrnbqcPtHZI20/oz+OBPnziRhnCletx+TRp241O5V3GpJW9koAXJL+TKzJXbKty91sHEDcykcKVE6G4b2zW13RArLIs4RZyrPimE6SXJF9tC9STLkFcvJ7z80mMUzp+trrHDKfT2MBTLdV3wHn0+rXW1rZHUPD3d0rHTWuzKbw+81MBxx0KL/O1Tv7pfbMZsa6jRae/04LRGEJB3iFuXfNET3gYdT3F6QkxgwmkdtyChdHQ9fEGl2LfsKKmkQGd+YSEJaUwfxAAkkJI/s0kGilTn3f1NiQl/fHSEpkW7cQsmMjEZc=