Skip to content

Commit 81f275d

Browse files
committed
Add back .travis file
1 parent d50a697 commit 81f275d

1 file changed

Lines changed: 73 additions & 0 deletions

File tree

.travis.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
language: c
2+
arch :
3+
- amd64
4+
- ppc64le
5+
sudo: required
6+
services:
7+
- docker
8+
env:
9+
global:
10+
- REPO=bcal
11+
12+
matrix:
13+
include:
14+
- os: linux
15+
dist: focal
16+
compiler: gcc
17+
- os: linux
18+
dist: focal
19+
compiler: clang
20+
# - os: linux
21+
# compiler: musl-gcc
22+
# addons:
23+
# apt:
24+
# packages: &musl_packages
25+
# - musl
26+
# - musl-dev
27+
# - musl-tools
28+
# - os: osx
29+
# compiler: gcc
30+
# - os: osx
31+
# compiler: clang
32+
33+
install:
34+
- if [ $TRAVIS_OS_NAME = linux ]; then
35+
sudo apt-get update -qy;
36+
sudo apt-get install -qy python3 python3-pip;
37+
python -m pip install logilab-common --user;
38+
python -m pip install pytest --user;
39+
fi
40+
- if [ $TRAVIS_OS_NAME = osx ]; then
41+
brew upgrade python;
42+
pip3 install logilab-common;
43+
pip3 install pytest;
44+
fi
45+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$CC" == "clang" ]]; then brew update; brew install llvm; export PATH="/usr/local/opt/llvm/bin:$PATH"; fi; fi
46+
47+
script:
48+
- make clean; make strip;
49+
- pytest ./test.py;
50+
- make clean;
51+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$CC" == "clang" ]]; then clang-tidy **/*.h **/*.c -- -Iinc; fi; fi
52+
53+
before_deploy:
54+
- cd ..
55+
- rm -rf $REPO/.git
56+
- tar -czf $REPO-${TRAVIS_TAG}.tar.gz $REPO
57+
- cd $REPO
58+
- mv ../$REPO-${TRAVIS_TAG}.tar.gz dist/
59+
60+
deploy:
61+
provider: releases
62+
api-key:
63+
secure: u83OMgj7hh+PWsBKE95FVB9eXionEu6W9drx6xWAhqJgqAlCtPFBb0MLimJCXBN0cStAfSHPGp4ovd+3oiimvzBoVH6Kx/ySWQ0vMU6L/1lNMVuE+Z/mxI98eQFR5fC/TMYWHD4+KyTs9CIN/DMZ+CZVbuAtr9neMmjx3fWfqSNQw7VUhP/IVQOFze0FJAdeqp0tPjXPnsA2eRLhmypR+1kHx2v7iy2NmC5Gk/qzpsuihW+U6Eg6e2SFBxEzLSylqJHC9/nPItqFSrhghUasK6ofJ72A5CaAZ5J0KWug1lJDrx6bNUmR4J1bBYR+vp2es73I7eKTBQ0FFWJrSvIJ62DowL2wxhr6xeyaILADykchxaawXNNxyapOr7feGLjPMb0Cxh5w9dfNXIWoRGSQGrERr+TDLgIXZENqYVjNklQg3HK9J5gD9EWn2qmm9NPZ1c3JUOCW/4kf7FLLlbSDUO3VGdQXVyYKpo5vgoZr7MG9zFb7aFWeDeQJRDd+c4TaSuqgt4l1Krn2Pfg9zjv2dDQHS3ZlumvwHJtebLpzOKfmNCmeKFIROCXVT6ml4QxTj3mjy6ddWlulL9mxF79z8bgGYQ9f/gplfQ0shEOnmoJnSsvmw7nPFBsNRSAfyDJQ2TaJ1wgMOu6IfN9yNIo93AaUFKGTKzYk0g/Skg2Avy8=
64+
file_glob: true
65+
file:
66+
- dist/*
67+
skip_cleanup: true
68+
on:
69+
condition:
70+
- "$TRAVIS_OS_NAME == linux"
71+
- "$CC == gcc"
72+
tags: true
73+
repo: jarun/bcal

0 commit comments

Comments
 (0)