-
Notifications
You must be signed in to change notification settings - Fork 166
/
.travis.yml
52 lines (46 loc) · 1.12 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
51
52
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=2.1.4
# - VERSION=2.1.5
# - VERSION=2.1.6
# - VERSION=2.2.0
# - VERSION=2.2.1
# - VERSION=2.2.2
# - VERSION=2.2.3
# - VERSION=2.2.4
# - VERSION=2.2.5
# - VERSION=2.2.6
- 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: