-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.travis.yml
79 lines (79 loc) · 3.21 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
dist: trusty
language: c++
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- verilator
env:
- CC=gcc-7
- CXX=g++-7
- os: osx
osx_image: xcode10.2
addons:
homebrew:
packages:
- verilator
update: true
before_install:
# install conda for py 3.7
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
else
# install conda for py 3.7
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $TRAVIS_BUILD_DIR/miniconda
- export PATH=$TRAVIS_BUILD_DIR/miniconda/bin:$PATH
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda create -q -n test-env python=3.7
- source activate test-env
- conda install pip
# End install conda
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# avoid strange libjpeg error (see https://github.com/sgrif/pq-sys/issues/1
# for some more info)
export DYLD_LIBRARY_PATH=/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/:/usr/local/lib:$DYLD_LIBRARY_PATH
else
export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
fi
- cd build
- cmake ..
- make -j2
- sudo make install
- cd -
- pip install pytest delegator.py
script:
- ls bin/
- pytest tests/binary
- make -j2 installtest
- make -j2 test
- cd build/tests/gtest && ctest -V && cd ../../../
- cd build && sudo make -j2 uninstall && cd ..
before_deploy:
- ./tools/scripts/release.sh
deploy:
provider: releases
api_key:
secure: ov1UJzIPDhQpIFlItxEI1d+1YZmW2UU83cXZTLm+Wl4m+Uanab1r3s9UakGW8OqwTDmKu1JHba876lC1YWcO6K9o6iAx8YVqTFKh89kOGs1V2vfkgMHVkV+x+AcxwUJJDOv0J2KCntLU6O7babm5peLMkctqsyfiOHK4muedKxpMLG6ZFyKit42yqXp2uLKJF7SvLtSBV7hSFST8fnt05Whxu4m8YP5qAQEKLkfo77dPS4/RXjo02ac5mTVEXklB8xvNvuPDNq1rWS/+0H83XMO3dJcDKYD6hOV48/pE17Imli6SEVMUwXsTAoGHRocfKXQRZS36mMD139YhDydZTckmlDVMN1P/+yKzsGg58cX9Z6AAp0fu2i/5myqbqH/m14JBlyZrvL8KuDL1uJvzwr6mbrlQGphOAOoGLNN3ziPAmJRdw4y73UCJjaK5I875O+YtCDmgadtlZp3QfTCUj9u/WsS8lFKv72tggWLf2gri3krfUQaFxHni2gMJY2DMeqFXh6g5/QY+naCoYQ2tFt6ORZZiB7K3iLe7hSh3BPq7/gvC/BV+pjaQMvH3YA8K9jDhn+SObhykR1yB2EAi8JpjOm2HfSHK2wvjPlwzsQQ2/0K9j8SwzChMJ+4s9gbPGOjiYatAMXIl61OlT8KkTrDfJp+lOMasLBaQDMYthfs=
file: coreir-${TRAVIS_OS_NAME}.tar.gz
skip_cleanup: true
on:
repo: rdaly525/coreir
tags: true
branch: master
notifications:
slack:
rooms:
secure: wDge444BBxOoHKi1bX2/Q7X7LDmF9akcNqfYNivabA30v3WJ7thLuQh2WQYEIcdIXljBgCtz8NuA8/OI3DGaJKaNBnrj/o2VA9JE1+9EHxwf6yS2pGuT43wBZtE/HT3R5e7zPe/lZPwoTh3625l5g6y58MbHQDmaOTQcnIoVoLtW6Zo1+QMhg+bDE6BPwJ3G0ekBaEK6YdeFzaZgvazuQe0yGCTbGRdvqcCzVEY0kEdrr3am8R1xgwgowYSbIsE6InwqSbKEHdG05sEbWpGzoFHtW+YfMBh4gH3UXXp0LZF2Sfq0stBwpP26V8I+SLH0uZZFXEAsNuAjIEsfMuJPgDt9/IR45JW6hjySctWNBF2/jPoPUPiENrEY57whH4t2YnbaY95dpqoAhaBHg66eLGgkgLQrMQPJUYi9LqmasvW808gfEQzgXDVekUp4dFIq4biJ62EUbN/Ag71TdTYu1lv6ynZQG3Ni/gS7p//qWxYG06AGp4cH45jR0GUb2qOYE4/mtsncYIQktZEOFA5qAEz+Y6l0AwemW6N9XvMPfAhlIhJMrY7cn2Kkr89p5zvKdzZk2gnjLae7oTtqoD8V2oralFWMVUBilIBghXN/ndxjR515MLRr6qlgqO0/ozOxgwKhsQki4IX405M1XIsg6muCECxwchwX0YmkY87H5og=
on_failure: change