CI: test building image in test_build job; use bundler 2.0

This commit is contained in:
nitramiz 2020-03-10 08:07:03 -07:00
parent 6565adae34
commit b840ff21c5
3 changed files with 5 additions and 2 deletions

View File

@ -42,6 +42,9 @@ test_build:
- bundle exec rake db:create && bundle exec rake db:schema:load && bundle exec rake db:migrate
- bundle exec ruby tests/tests.rb || { echo -e "Tests failed..\n Sleeping for an hour to debug."; sleep 3600; exit 1; }
- echo "Tests passed!"
- docker pull blockstream/satellite-api:latest
- docker build --cache-from blockstream/satellite-api:latest -t blockstream/satellite-api:latest .
- docker rmi blockstream/satellite-api:latest || true
# Run tests and build docker images
build:

View File

@ -1,4 +1,4 @@
FROM alpine@sha256:b3dbf31b77fd99d9c08f780ce6f5282aba076d70a513a8be859d8d3a4d0c92b8
FROM alpine@sha256:c40c013324aa73f430d33724d8030c34b1881e96b23f44ec616f1caf8dbf445f
ENV RUBY_PACKAGES ruby ruby-io-console ruby-irb ruby-rake ruby-bundler ruby-bigdecimal ruby-json
ENV RUBY_DEPS libstdc++ tzdata bash ca-certificates openssl sqlite sqlite-dev

View File

@ -71,4 +71,4 @@ DEPENDENCIES
sqlite3
BUNDLED WITH
1.17.1
2.0.0