2019-02-13 17:50:45 +00:00
|
|
|
dist: xenial
|
|
|
|
|
2019-07-04 13:59:50 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- HADOLINT_VERSION=1.17.1
|
|
|
|
|
2018-08-24 15:07:11 +00:00
|
|
|
language: rust
|
2019-02-13 17:50:45 +00:00
|
|
|
rust: nightly
|
2018-08-24 15:07:11 +00:00
|
|
|
cache: cargo
|
2019-02-13 17:50:45 +00:00
|
|
|
|
2019-07-04 13:59:50 +00:00
|
|
|
before_install:
|
|
|
|
- sudo curl -L https://github.com/hadolint/hadolint/releases/download/v$HADOLINT_VERSION/hadolint-$(uname -s)-$(uname -m) -o /usr/local/bin/hadolint
|
|
|
|
- sudo chmod +rx /usr/local/bin/hadolint
|
2019-10-15 19:21:37 +00:00
|
|
|
- rustup set profile minimal
|
2019-07-04 13:59:50 +00:00
|
|
|
|
2019-02-13 17:50:45 +00:00
|
|
|
# Nothing to install
|
|
|
|
install: true
|
2019-05-26 22:41:42 +00:00
|
|
|
script:
|
2019-07-04 13:59:50 +00:00
|
|
|
- git ls-files --exclude='Dockerfile*' --ignored | xargs --max-lines=1 hadolint
|
2019-11-30 22:32:31 +00:00
|
|
|
- cargo test --features "sqlite"
|
|
|
|
- cargo test --features "mysql"
|