-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
42 lines (42 loc) · 1.75 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
language: ruby
branches:
only:
- master
- develop
sudo: false
before_install:
- nvm ls-remote
- nvm install 10.15.1
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.6.0
- export PATH=$HOME/.yarn/bin:$PATH
- sudo apt-get install software-properties-common
- sudo apt-get update
cache:
yarn: true
install:
- bundle install
bundler_args: "--without development production staging"
rvm:
- 2.6.1
addons:
postgresql: 9.6
chrome: stable
before_script:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- psql -c 'create database "ocean-plus-habitat_test";' -U postgres
- cp config/database.yml.travis config/database.yml
- cp config/secrets.yml.travis config/secrets.yml
- "/usr/local/bin/yarn install"
script:
- RAILS_ENV=test bundle exec rails webpacker:compile
- RAILS_ENV=test bin/rake db:migrate
- RAILS_ENV=test bundle exec rake
notifications:
slack:
secure: fir6j1zLw4dZbg8YQ5mo3yIfrEH/F2s+UqeY6/wuXyv7ZQVjOWrR5CpRI08mq6m0TnrVDKtlewc2VaPf//ftFckTig7tZOHBDeI8mwo5YV6PMEjmqs2LX2X9MTNHA/gwhjBycT+YQTURIedXafsMUEYCwNRMs28bunshfqW+5cUKDbOIDWPa8facnOiCpMkdK2hFF23kLV1t3ZZXZAeD2Mjeh08VmdyRMk23IoGoKd2RI0DeSzEwDVARo/cQbtZx85SLbFFZv4mk9OKivRncyZ/nLznMKOugTOkhrd4dxOK6rv1i5hdrPz7HGpwBzdlPpQ+cXYeHgzGipEpaDe/S5jGRS8jcfn1PPl5WLh66wqrBr9dtbIV9sBtL+hQk24PkydLyJPi/CJYxyyOgiItgOkXFokF41R/NgJOM+70s+X8ujUAaUuCvDdoBgLkBHUpzFLOWSmjQnWeF9rn5JVUD+z/V2xYv78Pqm6orFPErrj22N0dhzF9fEtTgOL08/DKfeYV5qa5LNu7/kGgUdHfXTaR/C+tcE2Jieb+46yYfl15Tmy2IfEneqedyuBEthcErjEX4wVF8GaVevhmUphD1UkKGC6vLXnl5daYf9t404LlMWqCb3Xer514u81PWdHNRZfDYpofwdYCf+bU/26uQ0VgBlC3PsczxMfH4l8Cb7rY=
services:
- xvfb