forked from otwcode/otwarchive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (50 loc) · 2.45 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
54
55
56
57
58
59
sudo: required
dist: bionic
language: ruby
cache: bundler
if: tag IS blank
env:
- TEST_GROUP="./script/check_syntax"
- TEST_GROUP="rake db:otwseed"
- TEST_GROUP="rspec spec/controllers"
- TEST_GROUP="rspec spec/miscellaneous"
- TEST_GROUP="rspec spec/models"
- TEST_GROUP="cucumber -r features features/admins -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/bookmarks -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/collections -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/comments_and_kudos -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/gift_exchanges -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/importing -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/other_a -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/other_b -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/prompt_memes_a -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/prompt_memes_b -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/prompt_memes_c -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/search -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/tag_sets -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/tags_and_wrangling -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/users -f Ao3Cucumber::Formatter --color"
- TEST_GROUP="cucumber -r features features/works -f Ao3Cucumber::Formatter --color"
services:
- mysql
- redis
- memcached
before_install:
- bash script/travis/ebook_converters.sh
before_script:
- bash script/travis/configure.sh
- bash script/travis/elasticsearch_upgrade.sh
- bash script/travis/multiple_redis.sh
- bash script/travis/mysql.sh
script:
- RAILS_ENV=test bundle exec rake db:schema:load --trace
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec $TEST_GROUP
after_failure:
- tail -v -n +1 $TRAVIS_BUILD_DIR/tmp/capybara/*.html
notifications:
email:
recipients:
on_success: change
on_failure: always