forked from mlcommons/ck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (42 loc) · 1.6 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
# Prototyping testing for CM
os: linux
dist: xenial
language: python
python:
- "3.7"
- "3.10"
addons:
apt:
packages:
- python-pip
sources:
- ubuntu-toolchain-r-test
before_install:
- |
if [ $TRAVIS_OS_NAME == "osx" ]; then
brew update # this swaps python versions and makes 3 the default one
brew reinstall python # install and link python3 and pip3 to /usr/local/bin
export PATH=/usr/local/opt/python/bin:$PATH
export PYTHON_EXE=python3
export PIP_EXE=pip3
export CK_PLATFORM_NAME="generic-macos " # used later by CK
else
sudo apt-get install python-pip
export WANTED_PYTHON_VERSION=$TRAVIS_PYTHON_VERSION # since Python is supported in Linux, get it from Travis
export CK_PLATFORM_NAME="generic-linux " # used later by CK (note the trailing space to make the choice unique)
export PYTHON_EXE=python
export PIP_EXE=pip
fi
install:
- CWD=`pwd`
- $PIP_EXE install coveralls
- $PIP_EXE install pyyaml
- echo "TRAVIS_OS_NAME=${TRAVIS_OS_NAME}, WANTED_PYTHON_VERSION=${WANTED_PYTHON_VERSION}"
- which "${PYTHON_EXE}"
- ${PYTHON_EXE} --version
script:
- ${PYTHON_EXE} -m pip install --ignore-installed --verbose pip setuptools
- cd cm
- ${PYTHON_EXE} setup.py install
- ${PYTHON_EXE} -m cmind
- cm