-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
50 lines (40 loc) · 1.7 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
sudo: required
language: node_js
node_js:
- stable
services:
- docker
cache:
directories:
- node_modules
- $HOME/docker
before_install:
- npm config set progress false
- npm install -g npm@latest
- |-
for CACHE in "$HOME"/docker/*.tar.gz; do
if [[ -e "$CACHE" ]]; then
docker load -i "$CACHE"
fi
done
install:
- npm prune
- npm update --no-save
- docker pull hadolint/hadolint
script:
- npm run ci:test
- docker run --rm -i hadolint/hadolint < ./alpine/Dockerfile
before_cache:
- >-
mkdir -p "$HOME/docker" &&
docker images -a --filter "dangling=false" --format "{{.Repository}}:{{.Tag}} {{.ID}}" |
xargs -n 2 -t sh -c '[ -e "$HOME/docker/$1.tar.gz" ] || docker save "$0" | gzip -2 > "$HOME/docker/$1.tar.gz"'
notifications:
email: false
slack:
rooms:
- secure: oNWv3pdvLz1ZcNNMgD3/Oz+gEvLdfApyJiu/Eto3i6KkKhAMsL2rkjSRpztjpwoBD+TxvfJdXY4DkSSMc4M+B8gLMBHe8YQD9OJ7n9v6EOH6re0Zc70YlUgi3sYWqgQ+wPAkrUdzXzVOQhKJROlvgZr9ocopcjB+CIPxSXuxUqZTrEA4cTw41C5dcL0kriPYggLAJD0RFef/0WfJH3IG+1uBso80bmvcNFpZqMPdmNQnnJuy7qQgHHot/i+Trk4SB6pVLHCrNDlNXDKz0VtpFZx4A5HfqEj8ULKygmAIHqH5xFFItumFYa0x6WKW7ygm3exWKwqHj9WefsqDWqTCpKK1Uy6t2uUeKORvey197pBHCoO+NTXWX/c7s3wgERf1H3J29FlOSorI/4hzHBfNBRCENktT2tj06pIiPwurLqZAVTgiUBiQ1WrvwfiXeFlwNb/lJDtHyy052dUmiZCtHE/C0Yq5Yhl6dVZ/UVksQU5bmIqf52xJ7farvCLEPxjtcnLKQ7sHwgt6oDcWvckLxars8wT94NVtnYprQIOyiKOFEhxxv8dzmNlI90PcwqC9Qvzz1GTJcYeNwThpwJOELiIfAUXb/3xGEbXjZZeSqw222Fc4KhRHBphTynJQJsSSAqrvlmhCOscNPZskUCX5AXoxXuKszy7M5LYR+t3rtUk=
on_pull_requests: false
on_start: never
on_success: never
on_failure: change