代码拉取完成,页面将自动刷新
This example will guide you how to run tests in your Clojure application.
You can checkout the example source and check CI status.
This is what the .gitlab-ci.yml
file looks like for this project:
variables:
POSTGRES_DB: sample-test
DATABASE_URL: "postgresql://postgres@postgres:5432/sample-test"
before_script:
- apt-get update -y
- apt-get install default-jre postgresql-client -y
- wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
- chmod a+x lein
- export LEIN_ROOT=1
- PATH=$PATH:.
- lein deps
- lein migratus migrate
test:
script:
- lein test
In before script we install JRE and Leiningen.
Sample project uses migratus library to manage database migrations.
So we added database migration as last step of before_script
section
You can use public runners available on ci.gitlab.com
for testing your application with such configuration.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。