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