-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
45 lines (45 loc) · 1.32 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
version: 0.2.0.{build}
init:
- git config --global user.name "crossrailsReed"
- git config --global user.email [email protected]
environment:
nodejs_version: "6"
GithubUsername: crossrailsReed
GithubPassword:
secure: /iINJgMX9wdzkWxX0ARRYg==
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
- ps: Install-PackageProvider Chocolatey
# install modules
- npm install
- choco install gradle
- choco install maven
- cmd: SET PATH=C:\tools\apache-maven-3.3.9\bin;%PATH%
- ps: refreshenv
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
- mvn --version
- npm install -g nyc
- nyc npm test
- npm run build-wrappers
- npm run build-input-project
- npm install -g gulp
- gradle --version
- gulp run-java-tests
- cd wiki
- mvn clean package
- java -cp target/Wiki-1.0-SNAPSHOT.jar io.xrails.App
- cd ..
on_success:
- cmd: git clone -b master https://%GithubUsername%:%GithubPassword%@github.com/crossrails/compiler.wiki.git pages
- cmd: cd pages
- mv ../wiki/wiki.md "Compiler Options.md"
- git add "Compiler Options.md"
- git diff-index --quiet HEAD || git commit -m "updated wiki"
- git push
build: off