-
Notifications
You must be signed in to change notification settings - Fork 92
/
.travis.yml
31 lines (26 loc) · 1.07 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
language: cpp
os:
- linux
sudo: required
dist: trusty
notifications:
email: false
git:
submodules: false
depth: 1
services:
- docker
matrix:
include:
- os: linux
before_install:
- "sudo docker pull onnc/ubuntu-18.04"
- "sudo docker create --privileged=true -t --name container --volume ${TRAVIS_BUILD_DIR}:/root onnc/ubuntu-18.04"
- "sudo docker start container"
script:
- sudo docker exec -t container /bin/bash -c "mkdir ~/build-cmake"
- sudo docker exec -t container /bin/bash -c "cd ~/build-cmake && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install-cmake .."
- sudo docker exec -t container /bin/bash -c "cd ~/build-cmake && make -j8 install"
- sudo docker exec -t container /bin/bash -c "mkdir ~/build-automake"
- sudo docker exec -t container /bin/bash -c "~/autogen.sh"
- sudo docker exec -t container /bin/bash -c "cd ~/build-automake && ../configure --with-llvm=/usr/local --with-skypat=/usr/local --with-onnx=/usr/local --enable-unittest && make -j8 install"