mirror of
https://github.com/correl/elm.git
synced 2024-11-15 03:00:11 +00:00
Speed up travis
This commit is contained in:
parent
9cf23c2804
commit
6987b636ad
2 changed files with 187 additions and 168 deletions
21
.travis.yml
21
.travis.yml
|
@ -4,10 +4,29 @@ language: bash
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||||
|
- | # 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
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- nvm install 6
|
- nvm install 6
|
||||||
- nvm use 6
|
- nvm use 6
|
||||||
- npm install
|
- npm install
|
||||||
|
- if [ ! -f node_modules/.bin/elm-make-old ];
|
||||||
|
then
|
||||||
|
mv node_modules/.bin/elm-make node_modules/.bin/elm-make-old;
|
||||||
|
printf '%s\n\n' '#!/bin/bash' 'echo "Running elm-make with sysconfcpus -n 2"' '$TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 elm-make-old "$@"' > $(npm config get prefix)/bin/elm-make;
|
||||||
|
chmod +x $(npm config get prefix)/bin/elm-make;
|
||||||
|
fi
|
||||||
- bin/install-elm-format linux
|
- bin/install-elm-format linux
|
||||||
- export PATH=$PATH:$PWD/bin
|
- export PATH=$PATH:$PWD/bin
|
||||||
|
|
||||||
|
@ -18,5 +37,5 @@ script:
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
|
||||||
- elm-stuff
|
- elm-stuff
|
||||||
|
- sysconfcpus
|
||||||
|
|
334
config.json
334
config.json
|
@ -1,169 +1,169 @@
|
||||||
{
|
{
|
||||||
"slug": "elm",
|
"slug": "elm",
|
||||||
"language": "Elm",
|
"language": "Elm",
|
||||||
"repository": "https://github.com/exercism/xelm",
|
"repository": "https://github.com/exercism/xelm",
|
||||||
"active": true,
|
"active": true,
|
||||||
"exercises": [
|
"exercises": [
|
||||||
{
|
{
|
||||||
"slug": "hello-world",
|
"slug": "hello-world",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "bob",
|
"slug": "bob",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "leap",
|
"slug": "leap",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "raindrops",
|
"slug": "raindrops",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "pangram",
|
"slug": "pangram",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "accumulate",
|
"slug": "accumulate",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "triangle",
|
"slug": "triangle",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "scrabble-score",
|
"slug": "scrabble-score",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "anagram",
|
"slug": "anagram",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "space-age",
|
"slug": "space-age",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "strain",
|
"slug": "strain",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "difference-of-squares",
|
"slug": "difference-of-squares",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "word-count",
|
"slug": "word-count",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "sum-of-multiples",
|
"slug": "sum-of-multiples",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "hamming",
|
"slug": "hamming",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "rna-transcription",
|
"slug": "rna-transcription",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "run-length-encoding",
|
"slug": "run-length-encoding",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "sublist",
|
"slug": "sublist",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "nucleotide-count",
|
"slug": "nucleotide-count",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "series",
|
"slug": "series",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "phone-number",
|
"slug": "phone-number",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "grade-school",
|
"slug": "grade-school",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "allergies",
|
"slug": "allergies",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "robot-simulator",
|
"slug": "robot-simulator",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "list-ops",
|
"slug": "list-ops",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "atbash-cipher",
|
"slug": "atbash-cipher",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "say",
|
"slug": "say",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "largest-series-product",
|
"slug": "largest-series-product",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "roman-numerals",
|
"slug": "roman-numerals",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "gigasecond",
|
"slug": "gigasecond",
|
||||||
"difficulty": 1,
|
"difficulty": 1,
|
||||||
"topics": []
|
"topics": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"deprecated": [
|
"deprecated": [],
|
||||||
|
"ignored": [
|
||||||
],
|
"bin",
|
||||||
"ignored": [
|
"elm-stuff",
|
||||||
"bin",
|
"node_modules",
|
||||||
"elm-stuff",
|
"docs",
|
||||||
"node_modules",
|
"tests",
|
||||||
"docs"
|
"libsysconfcpus",
|
||||||
],
|
"sysconfcpus"
|
||||||
"foregone": [
|
],
|
||||||
]
|
"foregone": []
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue