This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
46 lines (46 loc) · 1.8 KB
/
.travis.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
language: elixir
elixir:
- 1.3.4
- 1.4.2
otp_release:
- 18.2
- 19.2
matrix:
exclude:
- elixir: 1.4.2
otp_release: 18.2
cache:
- sysconfcpus
before_install:
- | # epic build time improvement - see https://github.com/elm-lang/elm-compiler/issues/1473#issuecomment-245704142
if [ ! -d sysconfcpus/bin ];
then
git clone https://github.com/obmarg/libsysconfcpus.git;
cd libsysconfcpus;
./configure --prefix=$TRAVIS_BUILD_DIR/sysconfcpus;
make && make install;
cd ..;
fi
before_script:
- mix local.rebar --force
- nvm install 6.0
- nvm use 6.0
- npm upgrade --global npm
- npm install
- export PATH=$PATH:$PWD/node_modules/.bin/
script:
- mix test
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 1 npm run compile_dev
before_deploy: ./scripts/build-linux-releases.sh
deploy:
provider: releases
api_key:
secure: "hZ1GoKmMKiveGGOOrFtUe36GQ6OO9HUTjfouTLJvWSxVs9SGr4FYX5uvzBz99cw//jURFSoREGuIUratV31J3YAg0tJrGgzNOoWJp/UWbcY6gpgpVB0oYJnNVFOKczutq7P48yeNTSYi92qJE0swqJAJE2UW7fcaZeH96mEJuFck+j0V8G49YwzxdVXMHDAMCSMOFMbiraWQWMdHFLoi+kszefGLGjrCD36HzGVZ2OWwNfG7gBBQB4k/kIeNHkA5t+8zs8P9xyT1ygLwBuhIB1S16cwIJjTFMzwWv/1jOY7q+s1UjX8U4cYcK4sjn5vjfycnKe8pOMDTgJdGZ/+J2skxC+R8bolwsuMJvbN6i9Ys/0NZaMt9FkqzyV2ySwaBfKd2iOlP1C/7xH4nBlJeq+UmfFJPJTdihXAKq3jt7J0q/S3zdX/KXqYwkirJP6SJSCgJunj0oQSrl/tphE36nS8pSjQlz0uV/7d6oXSGa485LS7IhzYOqC5KWMpCe0wdymrTze0ySAwpvyA8+77vFGk0j+c/Wvz9+DHcKy8rTbiglZEQ45Gm/m1NlKG4Hd7IqNig1ozi8hfoRwASojisB1hOST7oYRBLPN/bGPPWWJ6YisLLJybd6w2wlBK+XD9TRlrkXv7jJXNXsNjsud6hLZQTnPFcpfGmdbIpwbC+1+8="
file:
- "request_pot-${TRAVIS_TAG:1}-ubuntu.tar.gz"
- "request_pot-${TRAVIS_TAG:1}-nixos.tar.gz"
- "scripts/nixos-run.sh"
skip_cleanup: true
on:
tags: true
condition: "($TRAVIS_ELIXIR_VERSION = 1.2.6) && ($TRAVIS_OTP_RELEASE = 18.2)"