-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
38 lines (32 loc) · 987 Bytes
/
.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
32
33
34
35
36
37
38
dist: trusty
language: python
# Need a modern C++11 compiler
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- gcc-5
python:
- "2.7"
- "3.5"
- "3.6"
install:
- export CXX="g++-5" CC="gcc-5"
- pip install tensorflow
- pip install .
# command to run tests
script:
# Create a test directory and change to it
- mkdir -p $TRAVIS_BUILD_DIR/test
# Test the simple custom operator
- cd $TRAVIS_BUILD_DIR/test
- tfopgen $TRAVIS_BUILD_DIR/tfopgen/examples/simple.yml
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/test/custom:$LD_LIBRARY_PATH
- cd $TRAVIS_BUILD_DIR/test/custom && make && python test_custom.py
# Test the complex phase operator
- cd $TRAVIS_BUILD_DIR/test
- tfopgen $TRAVIS_BUILD_DIR/tfopgen/examples/complex_phase.yml
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/test/fourier:$LD_LIBRARY_PATH
- cd $TRAVIS_BUILD_DIR/test/fourier && make && python test_complex_phase.py