forked from facebook/fboss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
18 lines (17 loc) · 891 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
sudo: required
dist: xenial # I wish this worked; defaults to trusty
services:
- docker
before_install:
- docker rm fboss_build fboss_build_phase2 fboss_build_phase3 || true # clean up from any old runs
# split docker commands up to avoid travis travel
- docker run --name fboss_build -v `pwd`:/tmp/code opennetworklinux/builder9:1.0 /bin/sh -c "g++ --version ; cd /tmp/code && bash getdeps.sh"
- docker commit fboss_build fboss/tmp
script:
- docker run --name fboss_build_phase2 -v `pwd`:/tmp/code fboss/tmp /bin/sh -c "cd /tmp/code && mkdir build && cd build && cmake .. && make -j`grep -c processor /proc/cpuinfo`"
- docker commit fboss_build_phase2 fboss/tmp2
# This hangs in travis !?!? Need to debug
# - docker run --name fboss_build_phase3 -v `pwd`:/tmp/code fboss/tmp /bin/sh -c "cd /tmp/code/build && make test"
notifications:
email:
- rsher@fb.com