forked from KSP-CKAN/CKAN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (59 loc) · 2.13 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
language: csharp
mono:
- latest
- 3.10.0
- 3.2.8
# Travis has problems with nunit on 3.8.0, dunno why.
# - 3.8.0
# These commands simulate having a graphical display, which is needed
# for our GUI tests.
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
- sudo apt-get install mono-devel nunit-console libtest-most-perl libipc-system-simple-perl
- mozroots --import --ask-remove
script:
- bin/build
- nunit-console --exclude=FlakyNetwork build/Tests/bin/Debug/CKAN.Tests.dll
- prove # Run all the tests in t/
before_deploy:
# S3 doesn't support file for some reason, so we have to put things in
# a directory
- mkdir uploads
- cp *.exe uploads
deploy:
# Releases (which are tagged) go to github
- provider: releases
api_key:
secure: AjwbRLStNJZb9hAOLfRLK85KlFo2q2Dr1NKCoDS4elek1nqSiOjL1hH0kDgUMx/PJqQVnFU8tbJPL30t9Pj7jcJhp0LhbbPipQE3TCSpafTneSEbdz5HT+OdghWCZhUhfs07wGNTFUwcAO4WBZ7wv1AnfdfogHdA5RMdykiIl38=
file:
- ckan.exe
on:
repo: KSP-CKAN/CKAN
tags: true
condition: $(mono --version | perl -ne'/version (\S+)/ and print $1') = 3.10.0
# all_branches needed as a workaround for travis-ci#1675
all_branches: true
# Any merge to master gets sent to
# http://ckan-travis.s3-website-us-east-1.amazonaws.com/
- provider: s3
access_key_id: AKIAI5JWAEFPFK6GH3XA
secret_access_key:
secure: b0PPlD7auqysK2LHA8N1US03dE/VKH2rOTwIqpIh50l/gURuXEl7Nd8S7qlf2dpEmz+8D5pIWD+J9scfrdD8Uuakhi3sQbqcV26UiR6+Ye06eGQfmIzqzAECt2naqEy7VJ/xrqq5aaaf8QhcOQMba3qVvwDSzkB2fJeh7+D6EY8=
bucket: ckan-travis
acl: public_read
skip_cleanup: true
local_dir: uploads
on:
repo: KSP-CKAN/CKAN
branch: master
condition: $(mono --version | perl -ne'/version (\S+)/ and print $1') = 3.10.0
notifications:
irc:
channels:
- "irc.esper.net#ckan-ci"
template:
- "%{repository_name}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
- "Change view : %{compare_url}"
- "Build details : %{build_url}"