2019-02-13 20:50:45 +03:00
|
|
|
dist: xenial
|
|
|
|
|
2019-07-04 16:59:50 +03:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- HADOLINT_VERSION=1.17.1
|
|
|
|
|
2018-08-24 18:07:11 +03:00
|
|
|
language: rust
|
2019-02-13 20:50:45 +03:00
|
|
|
rust: nightly
|
2018-08-24 18:07:11 +03:00
|
|
|
cache: cargo
|
2019-02-13 20:50:45 +03:00
|
|
|
|
2019-07-04 16:59:50 +03: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 22:21:37 +03:00
|
|
|
- rustup set profile minimal
|
2019-07-04 16:59:50 +03:00
|
|
|
|
2019-02-13 20:50:45 +03:00
|
|
|
# Nothing to install
|
|
|
|
install: true
|
2019-05-27 01:41:42 +03:00
|
|
|
script:
|
2019-07-04 16:59:50 +03:00
|
|
|
- git ls-files --exclude='Dockerfile*' --ignored | xargs --max-lines=1 hadolint
|
2019-12-01 01:32:31 +03:00
|
|
|
- cargo test --features "sqlite"
|
|
|
|
- cargo test --features "mysql"
|