forked from WikiEducationFoundation/WikiEduDashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (67 loc) · 2.1 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
60
61
62
63
64
65
66
67
env:
- TEST_SUITE='~type:feature' AFTER_SUCCESS='./travis-deploy.sh'
- TEST_SUITE='~type:foo' AFTER_SUCCESS='' # Run all tests in job 2
language: ruby
rvm: 2.3.1
sudo: required
dist: trusty
cache:
apt: true
directories:
- vendor
- node_modules
addons:
apt:
sources:
- ubuntu-sdk-team
packages:
- libqt5webkit5-dev
- qtdeclarative5-dev
- pandoc
- r-base
before_install:
- rvm --default use 2.3.1
- export QMAKE=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
- export DB=test
- export sentry_dsn=${sentry_dsn:=http://example.com}
- export DISPLAY=:99.0
- export SENDER_EMAIL_ADDRESS='[email protected]'
- sh -e /etc/init.d/xvfb start
- nvm install stable
- nvm use stable
- node --version
- npm --version
install:
- npm install gulp -g
- npm install bower -g
- npm install codeclimate-test-reporter -g
- npm install -g phantomjs-prebuilt@latest
- yarn install
- bower install
- bundle install --jobs=3 --retry=3 --deployment
before_script:
- mkdir tmp -m 777
- cp config/database.travis.yml config/database.yml
- sudo mysql -e "CREATE DATABASE test DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;"
- bundle exec rake db:migrate RAILS_ENV=test
script: gulp build && npm test && bundle exec rspec --color --profile --format documentation
--tag $TEST_SUITE
after_script:
- codeclimate-test-reporter < coverage/lcov.info
after_failure:
- npm install imgur-uploader-cli -g
- find $TRAVIS_BUILD_DIR/tmp/screenshots -name "*.png" -print0 | xargs -n 1 -0 imgur-uploader
after_success:
- "$AFTER_SUCCESS"
notifications:
slack:
# https://agileventures.slack.com/messages/wiki_edu-notify/
secure: LDzHmtPo8jt9wrnH51F8PHTHl2gwOj117+bvWYgtVa4VM7SW1SL+BuiD3+DMs83VTNptek8I/kOduR0lRxIgQMqddYrQRz1O10vOcIXGLOrWbXcx0tgCQjnDcLp4BdBd3k5Ybn1pc/uf7cQXGgCUQ9lAXzAEE+V6CkrCmaCYrVE=
deploy:
provider: heroku
api_key:
secure: jVnSDN5ndsIMasaCUyves/Z59IlrpCDQE0crU5gAEsB9Y71VX9NMYJKn0ubo7M1SiDLlDZb/HfhskU8Jm5Kkyhz0BpyDVO4TnD8xwxYv8T6qF+TVv6BaiOtCpU6orpVNzIwMoAgXvil8gvHXSZUoZFnoSphcZZQJkutfWIrJ3BM=
app: wiki-dashboard-surveys
on:
repo: WikiEducationFoundation/WikiEduDashboard
branch: surveys:master