This repository has been archived by the owner on Dec 1, 2022. It is now read-only.
forked from dpn-admin/dpn-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (43 loc) · 1.91 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
language: ruby
rvm:
- 2.3.1
branches:
only:
- master
- develop
services:
- mysql
- postgresql
- redis
env:
- DB=sqlite
- DB=mysql
- DB=postgres
before_install:
- if [[ $DB = 'sqlite' ]]; then echo "gem 'sqlite3'" > Gemfile.local; fi
- if [[ $DB = 'mysql' ]]; then echo "gem 'mysql2'" > Gemfile.local; fi
- if [[ $DB = 'postgres' ]]; then echo "gem 'pg'" > Gemfile.local; fi
install:
- bundle install --jobs=3 --retry=3
- sqlite3 --version
- mysql --version
- psql --version
before_script:
- bundle exec rake config
- cp config/database.yml.travis-$DB config/database.yml
- if [[ $DB = 'sqlite' ]]; then bundle exec rake db:create; fi
- if [[ $DB = 'mysql' ]]; then mysql -e 'CREATE DATABASE dpn;'; fi
- if [[ $DB = 'postgres' ]]; then psql -c 'CREATE DATABASE dpn;' -U postgres; fi
- bundle exec rake db:migrate
script: bundle exec rspec --tag ~broken_in_ci
script:
- if [[ $DB = 'sqlite' ]]; then bundle exec rspec --tag ~broken_in_sqlite; fi
- if [[ $DB = 'mysql' ]]; then bundle exec rspec; fi
- if [[ $DB = 'postgres' ]]; then bundle exec rspec; fi
addons:
code_climate:
repo_token: ce328d44d99a09d03c1dac2198c731dc8bfd22374fefc1917ce528b25a06ec4e
notifications:
slack:
secure: >
NPN5UAfze0ArE08cpxZlgZ0dN1s2FSeoKaJnf/zElBM+GrL4WDsGwUfgMc9yqIgc3aiDc1HHjzkNtqJynz2+bkMSBqtxzXteZ/Dz1hklXv6u2SCjuVCEyb+rzq488fN78gB5ohV9ovzAFuPm+T1b/vnXmSYBtJbnm8TRxgHHkM5x1gNE1FY+oZERByIiL+KSrG/k3pqFF1AtY3tt0hGDSMp1xhRblDdPUkq8FydApxUxI/dr5Aq8yN7QX4FWQvjm4Oka9+W16mIz7FiYo16r1BgSOWhsFEfub/PhTdD7AJyx3919xjvmrXZf5TVCYrxDmqPq4Ijgi9tgI2zxYyKyydB4U3yV+yGbM3zWFDHDKdX+iWdxkUl7iCZ3VXjvjpZj8WoFixQcOXwBq3HH5j9OEFZsgWhGa9cbvMvqfXKi23NCW1ybRVzbTO6GfjPi7GOByTKgBBf54wQPf4zD/GBehHrmGQV5ylWhPHlWYE5YmoKFrFczwbv9iUXIM+4ytMHYF+PcvLjVEPVOSLxw7F7d4ZE6hLpDKl9sXlZfoLpNYQNrlPBbFJEN/RBvUwX98Z2Ks+FEP2j28FSB3tnw4RsHCGrWmGeLL+K7UReASOXJY679sn9GlAtvNWO28MzFxAYOWxfSHNJO8jWtpBo7xxZrxw0RLr+vJlwsQFMwxXXLl7s=