forked from ARMmbed/yotta
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
43 lines (34 loc) · 1.22 KB
/
circle.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
dependencies:
pre:
# setup ssh so that yotta doesn't prompt for authn
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo -e 'Host bitbucket.org\n\tStrictHostKeyChecking no\n' >> ~/.ssh/config
# set up yotta registry login so that yotta doesn't prompt for authn:
- mkdir -p ~/.yotta
- chmod 700 ~/.yotta
- cp ./.yotta_test_config.json ~/.yotta/config.json
# setup git so it doesn't prompt
- git config --global user.email "[email protected]"
- git config --global user.name "Yotta Travis-CI Bot"
# get an up-to-date CMake
- sudo apt-get remove -y cmake
- curl -fsSL http://www.cmake.org/files/v3.2/cmake-3.2.3-Linux-i386.sh > /tmp/install-cmake.sh
- chmod +x /tmp/install-cmake.sh
- sudo /tmp/install-cmake.sh --prefix=/usr/local --exclude-subdir
# install Ninja
- sudo apt-get install ninja-build
# we use tox to run tests:
- pip install tox
override:
- pyenv local 2.7.10 3.3.3 3.4.3 3.5.0
# pre-build the tox environments, so we can cache them:
- tox --notest
cache_directories:
- ".tox"
test:
override:
- tox
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit
- find . -name "*nosetests.xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;