-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
37 lines (37 loc) · 1.49 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
dist: bionic
language: ruby
services:
- postgresql
rvm:
- 3.1.4
bundler_args: --without production:development
cache:
ccache: true
bundler: true
npm: true
yarn: true
directories:
- /home/travis/.rvm/
- $HOME/libzmq
- $HOME/bin
- $HOME/include
- $HOME/lib
- $HOME/share
env:
# These mock values were created for CI and are not sensitive:
- [email protected] DEVISE_JWT_SECRET_KEY=b160a79b5b8de31f84e0d73ebb7d6f2aeb2a4105ee7431209ba8b88412658b48312ba11c08f6ff8700f6bb234d5d63d8a8fac9509df1b38f27d035e46b874d59 VAPID_PRIVATE_KEY=OFCgfJWR0XKh8frilK9Mmv7TLiwhekEflehHDIyzhJI VAPID_PUBLIC_KEY=BODzsAyEftxIpLZLncvsR0nueOwPKtS-pxTGUKtj6n6qPXKSEdkqb7mrtE8oLVx-WQcUYvmnB1QhqwHR3v9KHhI=
before_install:
- $TRAVIS_BUILD_DIR/travis-zmq.sh
- cp $TRAVIS_BUILD_DIR/vendor/bitcoin-config.ini $TRAVIS_BUILD_DIR/vendor/bitcoin/test/config.ini
- sudo apt-get install --no-install-recommends --no-upgrade -y build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 libevent-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb-dev libdb++-dev
# - cd $TRAVIS_BUILD_DIR/vendor/bitcoin && test/get_previous_releases.py -b -t .. v0.21.0
- $TRAVIS_BUILD_DIR/bitcoind.sh
- yarn
before_script:
- bundle exec rake db:create RAILS_ENV=test
- bundle exec rake db:schema:load RAILS_ENV=test
script:
- bundle exec rubocop
- bundle exec rake
- npm test
- npm run coveralls || echo "push to coveralls failed"