-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 898 Bytes
/
Makefile
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
CHANGES = ${TRAVIS_BUILD_DIR}/.travis/build-condition.sh ${TRAVIS_COMMIT_RANGE}
ifeq ($(PROJECT), ruby)
PROJECT_NAME = ruby-project
PROJECT_PATH = ${TRAVIS_BUILD_DIR}/${PROJECT_NAME}
endif
ifeq ($(PROJECT), java)
PROJECT_NAME = java-project
PROJECT_PATH = ${TRAVIS_BUILD_DIR}/${PROJECT_NAME}
endif
ifeq ($(PROJECT), nodejs)
PROJECT_NAME = nodejs-project
PROJECT_PATH = ${TRAVIS_BUILD_DIR}/${PROJECT_NAME}
endif
install:
if ${CHANGES} ${PROJECT}; then cd ${PROJECT_PATH} && make install; fi
test:
if ${CHANGES} ${PROJECT}; then cd ${PROJECT_PATH} && make test; fi
integration:
if ${CHANGES} ${PROJECT}; then cd ${PROJECT_PATH} && make integration; fi
publish:
if ${CHANGES} ${PROJECT}; then cd ${PROJECT_PATH} && make publish; fi
package:
if ${CHANGES} ${PROJECT}; then cd ${PROJECT_PATH} && make package; fi
build:
if ${CHANGES} ${PROJECT}; then cd ${PROJECT_PATH} && make build; fi