File tree Expand file tree Collapse file tree 5 files changed +481
-2
lines changed Expand file tree Collapse file tree 5 files changed +481
-2
lines changed Original file line number Diff line number Diff line change 11image : haskell:8.6.5
22
3+ stages :
4+ - build
5+ - test
6+ - deploy
7+
38cache :
4- key : purty -v1
9+ key : purepur -v1
510 paths :
611 - .stack-root
712 - .stack-work
@@ -10,13 +15,40 @@ variables:
1015 LC_ALL : C.UTF-8
1116 STACK_ROOT : $CI_PROJECT_DIR/.stack-root
1217
13- build :
18+ build-linux :
19+ stage : build
20+ needs : []
1421 script :
1522 - stack build --copy-bins --local-bin-path ./artifacts --flag purepur:static
1623 artifacts :
1724 paths :
1825 - ./artifacts
1926
27+ build-macos :
28+ stage : build
29+ tags : [macOS]
30+ needs : []
31+ script :
32+ - stack build --copy-bins --local-bin-path ./artifacts-macos
33+ artifacts :
34+ paths :
35+ - ./artifacts-macos
36+ allow_failure : true
37+
38+ build-win :
39+ stage : build
40+ tags : [windows]
41+ needs : []
42+ script :
43+ - C:\Users\csicar\AppData\Roaming\local\bin\stack.exe build --copy-bins --local-bin-path ./artifacts-win
44+ artifacts :
45+ paths :
46+ - ./artifacts-win
47+ allow_failure : true
48+
49+
2050test :
51+ stage : test
52+ needs : []
2153 script :
2254 - stack build --test --no-run-tests --flag purepur:static --haddock --no-haddock-deps
Original file line number Diff line number Diff line change 1+ "use strict" ;
2+
3+ // The following implementation comes from
4+ // https://github.com/justinwoo/npm-psc-package-bin-simple/blob/4d4efa6a4e2008c8a0a71f0b189c14c31b88e47b/install.js
5+
6+ const request = require ( "request" ) ;
7+ const tar = require ( "tar" ) ;
8+ const version = "v0.1.1" ;
9+ const platform = { win32 : "windows" , darwin : "osx" } [ process . platform ] || "linux" ;
10+ const url = `https://github.com/csicar/purescript-doctest/releases/download/${ version } /${ platform } .tar.gz`
11+ console . log ( url )
12+ request . get ( url ) . pipe ( tar . x ( { C : './' } ) ) ;
You can’t perform that action at this time.
0 commit comments