forked from yongjhih/docker-parse-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (36 loc) · 942 Bytes
/
.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
language: bash
services: docker
env:
- VERSION=latest
- VERSION=2.0.0
- VERSION=2.0.1
- VERSION=2.0.2
- VERSION=2.0.3
- VERSION=2.0.4
- VERSION=2.0.5
- VERSION=2.0.6
- VERSION=2.0.7
- VERSION=2.0.8
- VERSION=2.1.0
- VERSION=2.1.1
- VERSION=2.1.2
- VERSION=2.1.3
- VERSION=dev DOCKERDIR="dev"
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- C=":"
- APP_ID="appId"
- MASTER_KEY="masterKey"
- sed -i 's/"parse-server"'$C' "[^"]\+"/"parse-server"'$C' "'"$VERSION"'"/' package.json
- image="yongjhih/parse-server:$VERSION"
- dockerdir="${DOCKERDIR:-.}"
- echo "ENV APP_ID $APP_ID" >> $dockerdir/Dockerfile
- echo "ENV MASTER_KEY $MASTER_KEY" >> $dockerdir/Dockerfile
script:
- docker build -t "$image" "$dockerdir"
- ~/official-images/test/run.sh "$image"
after_script:
- docker images
# vim:set et ts=2 sw=2: