forked from akiko-pusu/redmine_banner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
83 lines (78 loc) · 2.17 KB
/
wercker.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
box: akiko/docker-for-redmine-plugin-test
dev:
steps:
- internal/shell:
cmd: /bin/sh #defaults to /bin/bash
code: |
env
sh ./script/redmine-ready.sh
build:
steps:
- script:
name: ready redmine source code and workspace
code: |
sh ./script/redmine-ready.sh
test-stable:
steps:
- script:
name: 'check work directory'
code: |
ls -la
- script:
name: 'checkout stable'
code: |
hg up ${REDMINE_TARGET}
hg log --branch ${REDMINE_TARGET} -l 1
- script:
name: 'bundle install'
code: |
bundle install --without mysql postgreql rmagick && bundle update
- script:
name: 'Migrate DB'
code:
bundle exec rake db:migrate RAILS_ENV=test
- script:
name: 'Migrate Plugin'
code:
bundle exec rake redmine:plugins:migrate RAILS_ENV=test
- script:
name: 'Run Plugin tests via rake task'
code: |
bundle exec rake ${WERCKER_APPLICATION_NAME}:test
- script:
name: 'Uninstall Schema tests'
code: |
bundle exec rake redmine:plugins:migrate NAME=${WERCKER_APPLICATION_NAME} \
VERSION=0 RAILS_ENV=test
test-trunk:
steps:
- script:
name: 'check work directory'
code: |
ls -la
- script:
name: 'checkout default'
code: |
hg up default
hg log --branch default -l 1
- script:
name: 'bundle install'
code: |
bundle update && bundle install --without mysql postgreql rmagick
- script:
name: 'Migrate DB'
code:
bundle exec rake db:migrate RAILS_ENV=test
- script:
name: 'Migrate Plugin'
code:
bundle exec rake redmine:plugins:migrate RAILS_ENV=test
- script:
name: 'Run Plugin tests via rake task'
code: |
bundle exec rake ${WERCKER_APPLICATION_NAME}:test
- script:
name: 'Uninstall Schema tests'
code: |
bundle exec rake redmine:plugins:migrate NAME=${WERCKER_APPLICATION_NAME} \
VERSION=0 RAILS_ENV=test