forked from openpetra/openpetra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
24 lines (24 loc) · 1.09 KB
/
appveyor.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
# see http://www.appveyor.com/docs/appveyor-yml
image: Ubuntu2004
version: 1.0.{build}
platform: x86
stack: mysql, node 14
clone_depth: 1
init: []
environment:
APPVEYOR_NODE: installed
APPVEYOR_MONO: installed
APPVEYOR_MYSQL: installed
MYSQL_ROOT_PWD: Password12!
install:
#- sudo -E ln -s `which npm` /usr/bin/npm
#- sudo -E chown -R 1001:1001 "/home/appveyor/.npm"
#- sudo sed -i "s/\[mysqld\]/[mysqld]\nskip-name-resolve/g" /etc/mysql/my.cnf && sudo systemctl restart mysql
- curl https://get.openpetra.org > getopenpetra.sh && chmod a+x getopenpetra.sh && sudo -E ./getopenpetra.sh devenv --iknowwhatiamdoing=yes
build_script:
- echo "building was already done in install section"
test_script:
- sudo -E sh -c "curl --silent --location https://github.com/openpetra/demo-databases/raw/UsedForNUnitTests/demoWith1ledger.yml.gz > /home/op_dev/openpetra/demoWith1ledger.yml.gz && chown op_dev:openpetra /home/op_dev/openpetra/demoWith1ledger.yml.gz"
- sudo -E sh -c "cd /home/op_dev/openpetra && nant resetDatabase test-without-display"
before_deploy:
- sudo -E sh -c "cd /home/op_dev/openpetra && nant buildRPM"