diff options
author | pacien | 2020-01-16 00:10:26 +0100 |
---|---|---|
committer | Notkea | 2020-01-16 11:15:53 +0100 |
commit | 8b83c3a77d4bf2ff01b3da789aba7197ff183f30 (patch) | |
tree | a07570f651e03396969c947373c0aafc22c08550 | |
parent | 27b51018525dbb7a6edb3073819d82245387ddd3 (diff) | |
download | ldgallery-8b83c3a77d4bf2ff01b3da789aba7197ff183f30.tar.gz |
ci: configure travis ci
-rw-r--r-- | .travis.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e9f8948 --- /dev/null +++ b/.travis.yml | |||
@@ -0,0 +1,31 @@ | |||
1 | language: generic | ||
2 | |||
3 | jobs: | ||
4 | include: | ||
5 | - name: viewer | ||
6 | language: node_js | ||
7 | node_js: 12 | ||
8 | cache: | ||
9 | directories: | ||
10 | - viewer/node_modules | ||
11 | install: | ||
12 | - cd viewer | ||
13 | - npm install | ||
14 | script: | ||
15 | - npm run lint | ||
16 | - npm run build | ||
17 | |||
18 | - name: compiler | ||
19 | language: haskell | ||
20 | cache: | ||
21 | directories: | ||
22 | - $HOME/.stack | ||
23 | before_install: | ||
24 | - mkdir -p ~/.local/bin | ||
25 | - export PATH=$HOME/.local/bin:$PATH | ||
26 | - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' | ||
27 | install: | ||
28 | - cd compiler | ||
29 | - stack setup --no-terminal | ||
30 | script: | ||
31 | - stack build --no-terminal | ||