Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Commit 77fca06

Browse files
committed
feat(ci): use job stages
1 parent 6534793 commit 77fca06

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.travis.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: go
22

33
stages:
4-
- build
4+
- test
55
- deploy
66

77
services:
@@ -22,17 +22,17 @@ env:
2222
- LIBVIPS=8.8.4
2323
- LIBVIPS=8.9.2
2424

25+
before_install:
26+
- docker pull h2non/imaginary:latest || true
27+
28+
install:
29+
- "true"
30+
31+
script:
32+
- docker build --pull --cache-from h2non/imaginary:latest --build-arg GOLANG_VERSION="${GOLANG_VERSION%.x}" --build-arg LIBVIPS_VERSION="${LIBVIPS}" --build-arg IMAGINARY_VERSION="${IMAGINARY_VERSION#v}" --tag h2non/imaginary:${IMAGINARY_VERSION#v} .
33+
2534
jobs:
2635
include:
27-
# Build stage
28-
- stage: build
29-
before_install:
30-
- docker pull h2non/imaginary:latest || true
31-
install:
32-
- "true"
33-
script:
34-
- docker build --pull --cache-from h2non/imaginary:latest --build-arg GOLANG_VERSION="${GOLANG_VERSION%.x}" --build-arg LIBVIPS_VERSION="${LIBVIPS}" --build-arg IMAGINARY_VERSION="${IMAGINARY_VERSION#v}" --tag h2non/imaginary:${IMAGINARY_VERSION#v} .
35-
3636
# Deploy stage
3737
- stage: deploy
3838
script:

0 commit comments

Comments
 (0)