-
Notifications
You must be signed in to change notification settings - Fork 288
/
.travis.yml
23 lines (20 loc) · 1.06 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
language: python
services:
- docker
before_install:
- export DELTA_PATH=`pwd`; echo $DELTA_PATH
- export DOCKER_DELTA="/home/gitlab-runner/delta"; echo $DOCKER_DELTA
- export CI_IMAGE=zh794390558/delta:2.3.0-ci-cpu-py3
- docker pull ${CI_IMAGE}
- docker run -it -d --name travis_con --user root -v ${DELTA_PATH}:${DOCKER_DELTA} ${CI_IMAGE} bash
- docker exec travis_con bash -c "gcc -v && g++ -v"
- docker exec travis_con bash -c "cd ${DOCKER_DELTA}; source env.sh"
#- docker exec travis_con bash -c "cd ${DOCKER_DELTA}/tools; make basic check_install test"
- docker exec travis_con bash -c "cd ${DOCKER_DELTA}/tools; make basic check_install"
- docker exec travis_con bash -c "cd ${DOCKER_DELTA}/tools/install; bash prepare_kaldi.sh"
jobs:
include:
- stage: test
script: docker exec travis_con bash -c "cd ${DOCKER_DELTA}; bash tools/test/python_test.sh"
- script: docker exec travis_con bash -c "cd ${DOCKER_DELTA}; bash tools/test/lint.sh"
#- script: docker exec travis_con bash -c "cd ${DOCKER_DELTA}; bash tools/test/cpp_test.sh"