forked from openware/peatio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (41 loc) · 2 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
dist: trusty
sudo: required
language: ruby
cache: bundler
env:
- RAILS_ENV=test RAKE_ENV=test DISPLAY=:0.0
services:
- mysql
- redis-server
- rabbitmq
- docker
# Execute all of the commands which need to be executed before installing dependencies.
before_install:
- gem install bundler
- . $HOME/.nvm/nvm.sh
- nvm install 8
- nvm use 8
- npm i -g yarn
# Execute all of the commands which should install application dependencies.
install:
- bundle install --deployment --without production development --jobs=$(nproc) --retry=3
- bundle exec rake yarn:install
- wget https://chromedriver.storage.googleapis.com/2.34/chromedriver_linux64.zip
- sudo unzip chromedriver_linux64.zip -d /usr/local/bin/
# Execute all of the commands which need to be executed before running actual tests.
before_script:
- ./bin/init_config
- bundle exec rake db:create db:migrate
# Execute all of the commands which should make the build pass or fail.
script:
xvfb-run --auto-servernum --server-args="-screen 0 1280x800x16" bundle exec rspec &&
docker build --tag peatio .
# Execute all of the commands which need to be executed after the build passed.
after_success:
# Execute all of the commands which need to be executed after the build failed.
after_failure:
notifications:
slack:
rooms:
- secure: a63rTqa7fAt6JM1R2hUakd3cLYZzLHl4oACE2kLzZ3//Q0DkmgITJwB1JuVpnHsaiSCw0jdpAomZaFIBJdl+C44g0uU/hACZehk6K16QXaH4SYo+KKe/1hbwHJH/w2FXoWB1dnHpYAUZyaMHEaFSwnOIrRZBM8bQNA5GFSsGqMSkd+fuUXUA+2tVrTcSWgnVTEqTzSPl6tdW3Ea2C6MGhyDHlZvh27+/awF04XdH+HiejSReah13qz3UZdjp38Rg4vG+tGlUAFqTPhf6NBKQb5glMxHCrZCZk8abPwmdnxTBKNxyqGaklEdoRpRv8UFM7YiiBhe3rGZb5GikQbQt9B1xLqK389NPckt+T1w4k5bJQcTMd1V4at1z9fsN7oFLKLZ/PsDW+K1laIe0rox5q6JQR60ZzKMc+7BwMDWBI9p9tWUky5WGWC9s4u5Y0euA3PJQaUzaI8QZ3LhC0zLIqIVxj6Eemr1trjQg12C6+sRJOXgTzncnRcWkmZh14HIHfmAD44XSswOvrPssGntrr0Gqru4C5HGLb7aUvIIthGTfkCi7cfJzt0dg9FC7RgWQsEou1mxHS0DA6lpmRraw/mAATq1bVAzCAjXuUvYgLgX+9kfwsNswXF6EzHQtazRMDy09MWWK3Z1CbsmZQDXQRlwnT+cdLGKP0SwRpcQL4Uc=
on_pull_requests: true