-
Notifications
You must be signed in to change notification settings - Fork 12
/
travis.sh
executable file
·69 lines (58 loc) · 1.94 KB
/
travis.sh
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash -ev
conf_python_base_versioned() {
export DOCKER_PROJECT=inspirehep/python-base
export DOCKER_IMAGE_TAG=2.7
export DOCKERFILE=python_base/Dockerfile
export ARGS='--build-arg=INSPIRE_PYTHON_VERSION=2.7'
}
conf_python_base_latest() {
export DOCKER_PROJECT=inspirehep/python-base
export DOCKER_IMAGE_TAG=latest
export DOCKERFILE=python_base/Dockerfile
export ARGS='--build-arg=INSPIRE_PYTHON_VERSION=2.7'
}
conf_python_base_test_versioned() {
export DOCKER_PROJECT=inspirehep/python-base-test
export DOCKER_IMAGE_TAG=2.7
export DOCKERFILE=python_base_test/Dockerfile
export ARGS='--build-arg=INSPIRE_PYTHON_VERSION=2.7'
}
conf_python_base_test_latest() {
export DOCKER_PROJECT=inspirehep/python-base-test
export DOCKER_IMAGE_TAG=latest
export DOCKERFILE=python_base_test/Dockerfile
export ARGS='--build-arg=INSPIRE_PYTHON_VERSION=2.7'
}
conf_elasticsearch() {
export DOCKER_PROJECT=inspirehep/elasticsearch
export DOCKER_IMAGE_TAG=latest
export DOCKERFILE=elasticsearch/Dockerfile
export ARGS=''
}
conf_elasticsearch5() {
export DOCKER_PROJECT=inspirehep/elasticsearch5
export DOCKER_IMAGE_TAG=latest
export DOCKERFILE=elasticsearch5/Dockerfile
export ARGS=''
}
conf_elasticsearch7() {
export DOCKER_PROJECT=inspirehep/elasticsearch7
export DOCKER_IMAGE_TAG=latest
export DOCKERFILE=elasticsearch7/Dockerfile
export ARGS=''
}
conf_elasticsearch; ./build.sh
conf_elasticsearch5; ./build.sh
conf_elasticsearch7; ./build.sh
conf_python_base_versioned; ./build.sh
conf_python_base_latest; ./build.sh
conf_python_base_test_versioned; ./build.sh
conf_python_base_test_latest; ./build.sh
./test.sh
conf_elasticsearch; ./deploy.sh
conf_elasticsearch5; ./deploy.sh
conf_elasticsearch7; ./deploy.sh
conf_python_base_versioned; ./deploy.sh
conf_python_base_latest; ./deploy.sh
conf_python_base_test_versioned; ./deploy.sh
conf_python_base_test_latest; ./deploy.sh