-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
81 lines (73 loc) · 2.38 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
80
81
os: linux
dist: xenial
compiler: gcc
sudo: required
script:
- py.test-3
- cram3 -v --shell=bash tests/release/test_interface.t
- cram3 -v --shell=zsh tests/release/test_interface.t
matrix:
include:
- name: "Test with nix-shell"
language: nix
script:
- nix-shell -A test scripts/shell.nix --run 'mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr/local
.. && make package && sudo make install && cd .. && py.test'
- name: "Test on ubuntu"
language: cpp
addons:
apt:
packages:
- cmake
- g++
- zsh
- python3
- python3-pytest
- python3-cram
install:
- mkdir -p build && cd build && cmake .. && make package && sudo make install
&& cd .. && hm-db configure ~/.bashrc && . ~/.bashrc
- name: "Test Nix release"
language: nix
addons:
apt:
packages:
- python3
- python3-pytest
install:
- tests/release/install_release_nix.sh 0.4.0
- hm-db configure ~/.bashrc
- . ~/.bashrc
script:
- . tests/release/prepare_history.sh
- . tests/release/check_history.sh
- name: "Test Deb release"
language: cpp
addons:
apt:
packages:
- cmake
- g++
- python3
- python3-pytest
install:
- tests/release/install_release_deb.sh 0.4.0
- hm-db configure ~/.bashrc
- . ~/.bashrc
script:
- . tests/release/prepare_history.sh
- . tests/release/check_history.sh
deploy:
provider: releases
api_key:
secure: WvLU0KaZu7hXc1Rd1QSgDjyj5XIWMcVSsip0ifXtCRBMzOUklc3JufmnF2Gi99k+BfHgK38cIA3Q0PRxPqsRRDk0aERlLsrUCAGUURY6maHiS/H+6MgBu2H4xtY8qPyPYond9hzs2ewBPFg8Rr/5GieOV7RarFMB4sx3ICGsAngdNjj/IhM4kRWnWAhsrK4EF4MBvxFM3Im9I1/Kiv5IFktPaJ9PAZ3pYGkeYcPnFnTWfYJn9yCrdFSg91N6p6QsXzb0o3bYKdn9wJvelj1hP5VON3pLnLgRJ9BEU5ItIbVUObh1J9h9Qc9m5ilzBjcxy5ImTgwRvS8rfke5dP4wSIXDgY2DpFyunCABw/AruTvCODZnPie0jpOxhgTGWN7QwyqQ7Qh5PWf5emuaIPtYc6FqsK1CJ4a7bfPSWRIzlsXaQ5rVZMchCI4xsWnoObnr3Tiz95K0HGutwSKztZht/VePW7fvS+4/f1HWvWXGk0dhr0zabZxacv2lvJGhuJeJ54mepUNtGBXRaIWfR0jXlZwgnfOzwacFHwVJIxFJtg520/tyyo9j+ITUjqF5eeBJslHnHZGK8AuKbNBCxdg9r4e+lPBO3nhdw8LA3XxPR7+h+8xzy43QH4vYZNc5Y1qGa0o4bEBRhpxqHQ6iYUqjppu17ExbwPbVNXhWHGminEo=
file_glob: true
file:
- build/hm-*-Linux-x86_64.deb
- build/hm-*.nix
skip_cleanup: true
draft: true
on:
tags: true
all_branches: true
repo: dkolmakov/hm