-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (25 loc) · 1.76 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
language: python
env:
REGISTRY_IMAGE: eurodatacube/ogc-edc
services:
- docker
before_install:
export PACKAGE_VERSION=`awk -F'[=&]' '{print $2}' < . edc_ogc/__init__.py | tr -d '"'`
install:
- docker pull "$REGISTRY_IMAGE:latest" || true
- docker build --cache-from "$REGISTRY_IMAGE:latest" -t "$REGISTRY_IMAGE:tmp_build" -t "$REGISTRY_IMAGE:test" .
- docker build -t eurodatacube/ogc-edc-test -f ./Dockerfile.test .
script:
- docker run -it -e SH_CLIENT_ID="$SH_CLIENT_ID" -e SH_CLIENT_SECRET="$SH_CLIENT_SECRET" eurodatacube/ogc-edc-test
deploy:
- provider: script
script: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin && docker tag "$REGISTRY_IMAGE:tmp_build" "$REGISTRY_IMAGE:$PACKAGE_VERSION" && docker push "$REGISTRY_IMAGE:$PACKAGE_VERSION"
on:
tags: true
- provider: script
script: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin && docker tag "$REGISTRY_IMAGE:tmp_build" "$REGISTRY_IMAGE:latest" && docker push "$REGISTRY_IMAGE:latest"
on:
branch: master
notifications:
slack:
secure: du94WuAkv4L8T0q/5n7xh7RgjtllJkXXM5OgduJtJJQtsLg1mWnYUcdxPID0pI6lC346k/H+ulB9Z43CpJ8kpeM+VfR4f1QHC7XJHQhHqbsLb1Qx1JCZmzhCCDzjwSAkrlNo4KD+yIZUWepH2gqgQlt8QETrGyhlhPsGp7pfG1cSmeSb3Iq1oDeGUCis2I+/6AnpqKBD1WgL5PbnMwJdjNzDxBJ5UeduwzSuSHDucTuupx/wlodirF7GiNklafXxAAaAPLDN3FPb+b55hVS1MCuZlPUV6s/oKDUbjx+ixVAXs0rhrn6O41ak2Jw21OVBRYzbIz2G33Q8lo5roP3ZRIAPE86S2fBAQCn4X/AxjpdCO5QbzR916PZPB4yEB0ulBCzxyefVfVFhxGvPhhI96IHV2NC9QSjAOgAke72S/8w/+TveutK93tEBxYYU1wyM83Fv0Dww+VG4ElC/6YT2SxViobmo+2dMXvFggHOUIH2ry7/Tq0JD+k/hNjYoMM0T8/ZeP6mUrnXxAmKANM0Z5LM7W/yHby64PxinJi5X/9zAPM0bmdBOXcXTQ6AbRIQSRoixvIteGfNvvJLYKoC93dDHFFO9RIaS6yV5t3DxazYxxvjLIxhPomEmpfr5+roUPJp+QU9bQUqLTMhkaBdox+zK36FnYtj7/e1Yb8piFic=