-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
82 lines (64 loc) · 2.37 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '{build}'
clone_folder: C:\projects\extract-scss-variables
image: Visual Studio 2015
platform: x64
cache:
- node_modules
- e2e/node_modules
- '%APPDATA%\npm-cache'
environment:
COVERALLS_REPO_TOKEN:
secure: UG9YjswVMAqa7lyIS3uxVVvriVcJ+oefODFfJRyesvKW/EPN1ZIKTGIfAcduqkly
matrix:
- nodejs_version: 4
NODE_SASS: 3
- nodejs_version: 4
NODE_SASS: 4
- nodejs_version: 6
NODE_SASS: 3
- nodejs_version: 6
NODE_SASS: 4
- nodejs_version: 7
NODE_SASS: 3
- nodejs_version: 7
NODE_SASS: 4
install:
- ps: Install-Product node $env:nodejs_version x64
- node --version
- node -p "process.arch"
- npm --version
- npm install
- ps: $env:package_path = "$(pwd)\$(npm pack | tail -n1)"
- npm install node-sass@^%NODE_SASS%
- npm ls jest
- cd C:\projects\extract-scss-variables\e2e
- npm install
- npm install %package_path%
- cd C:\projects\extract-scss-variables
test_script:
- cd C:\projects\extract-scss-variables\e2e
# Test the scss compiles
- npm run scss
- ps: if ((Get-Content "css\bundle.css") -eq $Null) { exit 1 }
# Test the node version
- node index.js
# Test the CLI version with a JSON string
- ps: $env:tmp_file_json_string = "tmp-json-string.out"
- ps: node_modules\.bin\extract-scss-variables style\bundle.scss -f node_modules\foundation-sites\scss\settings\_settings.scss -f node_modules\foundation-sites\scss\_global.scss -f style\_settings.scss -f style\_globals.scss -c '{^\"includePaths\":[\"node_modules\\foundation-sites\\scss\"]}' -o %tmp_file_json_string%
- ps: if ((Get-Content "$env:tmp_file_json_string") -eq $Null) { exit 1 }
# Test the CLI version with a JSON file
- ps: $env:tmp_file_json_file = "tmp-json-file.out"
- ps: node_modules\.bin\extract-scss-variables style\bundle.scss -f node_modules\foundation-sites\scss\settings\_settings.scss -f node_modules\foundation-sites\scss\_global.scss -f style\_settings.scss -f style\_globals.scss -c sass-config.json -o %tmp_file_json_file%
- ps: if ((Get-Content "$env:tmp_file_json_file") -eq $Null) { exit 1 }
- cd ..
# Check coding style
- npm run eslint
# Check types
- npm run flow check
# Run tests & coverage
- npm test -- --no-cache --coverage
- cd C:\projects\extract-scss-variables
build_script:
- npm run build
on_success:
- ps: cat .\coverage\lcov.info | .\node_modules\.bin\coveralls