File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 16
16
services :
17
17
- docker
18
18
build_script :
19
- - docker build --tag debian11 --build-arg JOB_NUMBER=1 --build-arg BRANCH=master --build-arg USE_TENSORFLOW="true" -f ./continuous_integration/Dockerfile-debian11 .
19
+ - docker build --tag debian11 --build-arg BRANCH=master --build-arg USE_TENSORFLOW="true" -f ./continuous_integration/Dockerfile-debian11 .
20
20
- docker create -ti --name dummy debian11 bash
21
21
- docker cp dummy:/src/lima/build ./
22
22
- docker rm -f dummy
43
43
services :
44
44
- docker
45
45
build_script :
46
- - docker build --tag travis-ubuntu20.04 --build-arg JOB_NUMBER=1 --build-arg BRANCH=master --build-arg USE_TENSORFLOW="true" -f ./continuous_integration/Dockerfile-travis-ubuntu20.04 .
46
+ - docker build --tag travis-ubuntu20.04 --build-arg BRANCH=master --build-arg USE_TENSORFLOW="true" -f ./continuous_integration/Dockerfile-travis-ubuntu20.04 .
47
47
- docker create -ti --name dummy travis-ubuntu20.04 bash
48
48
- docker cp dummy:/src/lima/build ./
49
49
- docker rm -f dummy
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ ENV LANGUAGE en_US:en
9
9
ENV LC_ALL en_US.UTF-8
10
10
RUN locale
11
11
12
- ARG BRANCH
12
+ ARG BRANCH=master
13
+ ARG USE_TENSORFLOW="true"
13
14
ARG GITHUB_TOKEN
14
- ARG JOB_NUMBER
15
15
ARG LIMA_DISABLE_FSW_TESTING
16
16
ARG LIMA_DISABLE_CPACK_DEBIAN_PACKAGE_SHLIBDEPS
17
17
ARG NLTK_PTB_DP_FILE
@@ -29,7 +29,7 @@ RUN wget https://launchpad.net/~limapublisher/+archive/ubuntu/ppa/+files/libtens
29
29
30
30
# Install recent cmake
31
31
WORKDIR /cmake_build
32
- RUN wget --no-check-certificate https://cmake.org/files/v3.16/cmake-3.16.4-Linux-x86_64.sh
32
+ RUN wget --no-check-certificate https://cmake.org/files/v3.16/cmake-3.16.4-Linux-x86_64.sh -q
33
33
RUN sh cmake-3.16.4-Linux-x86_64.sh --prefix=/usr --exclude-subdir --skip-license
34
34
RUN cmake --version
35
35
WORKDIR /
@@ -87,3 +87,11 @@ RUN /bin/bash -c "set -o pipefail && tvx --language=eng --language=fre test-fre.
87
87
# install github-release to be able to deploy packages
88
88
RUN wget https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 -q && tar xjf linux-amd64-github-release.tar.bz2 && cp bin/linux/amd64/github-release /usr/bin
89
89
90
+ # install python packages necessary to use the language resources install script
91
+ RUN apt-get install -y python3-pip -qq
92
+ RUN /bin/bash -c "if [ \"$USE_TENSORFLOW\" = true ] ; then pip3 install unix_ar requests tqdm ; fi"
93
+
94
+ # install English and French UD models
95
+ RUN /bin/bash -c "if [ \"$USE_TENSORFLOW\" = true ] ; then lima_models.py -l english ; fi"
96
+ RUN /bin/bash -c "if [ \"$USE_TENSORFLOW\" = true ] ; then lima_models.py -l french ; fi"
97
+
You can’t perform that action at this time.
0 commit comments