add tests_build on branches

This commit is contained in:
Ben Teitelbaum 2019-05-20 10:11:45 -07:00
parent 33d869624e
commit c120bed262

View file

@ -16,6 +16,23 @@ before_script:
- gcloud auth list
- gcloud --version
# Run tests
test_build:
stage: build
image: blockstream/satapi-builder@sha256:a3a137b80a08325bdd50a7c59ae0429b933e7a36db0d74f6ae34af067dfdee2d
only:
- branches@satellite/ionosphere
except:
- master@satellite/ionosphere
before_script:
- export CHARGE_ROOT=$CHARGE_ROOT_CI
- export REDIS_URI=$REDIS_URI_CI
script:
- bundle exec rake db:create && bundle exec rake db:schema:load && bundle exec rake db:migrate
- bundle exec ruby tests/tests.rb || { echo "Tests failed.."; exit 1; }
- echo "Tests passed!"
- sleep 5000
# Run tests and build docker images
build:
stage: build