-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
67 lines (52 loc) · 1.42 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
67
# Test against this version of Node.js
environment:
nodejs_version: "6.9.1"
access_token:
secure: POyM5dzrb6H86XZqJCEp2ky3P3A6vQghzxMwWxP3rZTE1oSaxYbRgBgCVy+bkIso
platform:
- x64
# 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
- rm -rf .git
- rm README.md
- rm .gitignore
- git init
- git remote add origin https://github.com/digihum/imperial-entanglements-app.git
- git pull origin master
# print versions
- node --version
- npm --version
# install dependencies
- npm install
# build typescript
- npm run tsc || true
# copy test db
- cp blank.sqlite mydb.sqlite
# copy .env file
- cp .env.example .env
- npm run gulp
- npm run webpack
# run sql migrations
- npm run migrate
- npm run seed
- npm run dist
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- npm test
# Don't actually build.
build: off
on_success:
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git config --global user.email "Your email"
- git config --global user.name "Your Name"
- git pull origin master
- git add .
- git commit -m "Build $env:APPVEYOR_BUILD_ID"
- git push origin master