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