4 Star 7 Fork 0

Gitee 极速下载/gitlab-ci

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
app
bin
builds
config
db
doc
api
deployment
docker
examples
README.md
test-and-deploy-python-application-to-heroku.md
test-and-deploy-ruby-application-to-heroku.md
test-clojure-application.md
install
migration_to_omnibus
permissions
quick_start
raketasks
runners
update
variables
yaml
README.md
lib
public
script
spec
vendor
.foreman
.gitattributes
.gitignore
.gitlab-ci.yml
.hound.yml
.rspec
.rubocop.yml
.travis.yml
CHANGELOG
CONTRIBUTING.md
Gemfile
Gemfile.lock
Guardfile
LICENSE
Procfile
README.md
Rakefile
VERSION
config.ru
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/gitlabhq/gitlab-ci
克隆/下载
test-clojure-application.md 1.11 KB
一键复制 编辑 原始数据 按行查看 历史

Test Clojure applications

This example will guide you how to run tests in your Clojure application.

You can checkout the example source and check CI status.

Configure project

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.

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/gitlab-ci.git
git@gitee.com:mirrors/gitlab-ci.git
mirrors
gitlab-ci
gitlab-ci
master

搜索帮助