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