forked from scalacenter/scastie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (38 loc) · 1.22 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
language: nix
nix: 2.3.6
dist: xenial
os:
- linux
env:
global:
- TRAVIS_NODE_VERSION="8"
services: mongodb
script:
- glibcLocales=$(nix-build --no-out-link "<nixpkgs>" -A glibcLocales)
- echo $glibcLocales
- export LOCALE_ARCHIVE_2_27="${glibcLocales}/lib/locale/locale-archive"
- git checkout .
- git clean -df
- nix-shell -A scastie --command "sbt -DSnippetsContainerTest.mongo=true cachedCiTest"
before_install:
- sudo mkdir -p /etc/nix
- echo "substituters = https://cache.nixos.org/ file://$HOME/nix.store" | sudo tee -a /etc/nix/nix.conf > /dev/null
- echo 'require-sigs = false' | sudo tee -a /etc/nix/nix.conf > /dev/null
before_cache:
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete || echo "empty ivy cache"
- find $HOME/.sbt -name "*.lock" -print -delete
- mkdir -p $HOME/nix.store
- nix copy --to file://$HOME/nix.store -f default.nix scastie.buildInputs
- rm -rf ./.git
- rm -rf ./project/target
- rm -rf ./project/project/target
- rm -rf ./project/project/project/target
cache:
yarn: true
directories:
- $HOME/.cache/coursier
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/nix.store
- ./