File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ sudo : false
2
+
3
+ # Choose a lightweight base image; we provide our own tools.
4
+ language : c
5
+
6
+ cache :
7
+ directories :
8
+ - $HOME/.ghc
9
+ - $HOME/.cabal
10
+ - $HOME/.stack
11
+
12
+ addons :
13
+ apt :
14
+ packages :
15
+ - libgmp-dev
16
+
17
+ before_install :
18
+ - mkdir -p ~/.local/bin
19
+ - export PATH=$HOME/.local/bin:$PATH
20
+ - curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
21
+
22
+
23
+ install :
24
+ - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
25
+ - stack --no-terminal -j1 --install-ghc build --only-dependencies
26
+
27
+ script :
28
+ - stack --no-terminal -j1 build --flag trypurescript:-dev
29
+
30
+ notifications :
31
+ email : true
32
+
33
+ before_deploy :
34
+ - mkdir bundle
35
+ - cp `stack path --dist-dir`/build/trypurescript/trypurescript bundle/
36
+ - cp LICENSE bundle/
37
+ - tar czf trypurescript.tar.gz -C bundle/ .
38
+
39
+ deploy :
40
+ provider : releases
41
+ api_key : $RELEASE_KEY
42
+ file : trypurescript.tar.gz
43
+ skip_cleanup : true
44
+ on :
45
+ tags : true
You can’t perform that action at this time.
0 commit comments