-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
66 lines (56 loc) · 2.06 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
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
branches:
only:
- master
image:
- Ubuntu2004
environment:
GITHUB_API_KEY:
secure: w1zaTUARBAuhkAKUke5sBvSkVtlDGL8YfQxROzv5oGIynVJImn+KWGFVDxyjQore
global:
HAXELIB_ROOT: /home/appveyor/haxelib
HAXE_INSTALLDIR: /home/appveyor/haxe
install:
- cd /home/appveyor
- sudo add-apt-repository ppa:haxe/releases -y
- sudo apt update
- sudo apt install neko tar -y
- wget https://github.com/HaxeFoundation/haxe/releases/download/4.2.4/haxe-4.2.4-linux64.tar.gz
- mkdir $HAXE_INSTALLDIR
- tar -xf haxe-4.2.4-linux64.tar.gz -C $HAXE_INSTALLDIR
- export PATH=$PATH:$HAXE_INSTALLDIR/haxe_20211022152000_ab0c054
- mkdir $HAXELIB_ROOT && haxelib setup $HAXELIB_ROOT
- haxelib install hxcpp
- haxelib install format
- haxelib install mcli
- haxelib install Sure
- haxelib list
- cd $APPVEYOR_BUILD_FOLDER
# Configure CI bot git email/username
- git config --global user.name "AppVeyor CI Bot"
- git config --global user.email "[email protected]"
- git submodule update --init --recursive
- git submodule update --remote --merge
# Push the latest versions of the submodules to the repository
- |
if [[ `git status --porcelain` ]]; then
git checkout master
git add lib/geometrize
git commit --message "Build bot updating submodule"
git remote rm origin
git remote add origin https://${GITHUB_API_KEY}@github.com/Tw1ddle/geometrize-haxe-example.git > /dev/null 2>&1
git push origin master
fi
build_script:
- cd $APPVEYOR_BUILD_FOLDER
- haxe GeometrizeHaxeExample.hxml
# Check the bin directory, run built executable as a sanity check
- cd bin
- ls -a
- cd ..
- cp bin/Main sample_images/Main
- cd sample_images
- chmod +x Main
- ./Main -i "grapefruit.png" -o "output.png" -t rectangle -s 100 -c 500 -m 100 -a 170
- ./Main -i "grapefruit.png" -o "output.svg" -t triangle -s 300 -c 100 -m 200 -a 255
- ./Main -i "grapefruit.png" -o "output.json" -t ellipse -s 200 -c 250 -m 50 -a 128
- ./Main -i "grapefruit.png" -o "output2.svg" -t quadratic_beziers -s 2500 -c 200 -m 50 -a 128